|
|
|
@ -13,9 +13,19 @@ part of openapi.api;
|
|
|
|
class MemoriesUpdate {
|
|
|
|
class MemoriesUpdate {
|
|
|
|
/// Returns a new [MemoriesUpdate] instance.
|
|
|
|
/// Returns a new [MemoriesUpdate] instance.
|
|
|
|
MemoriesUpdate({
|
|
|
|
MemoriesUpdate({
|
|
|
|
|
|
|
|
this.duration,
|
|
|
|
this.enabled,
|
|
|
|
this.enabled,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Minimum value: 1
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
|
|
|
|
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
|
|
|
|
|
|
/// source code must fall back to having a nullable type.
|
|
|
|
|
|
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
int? duration;
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
|
|
@ -26,18 +36,25 @@ class MemoriesUpdate {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) => identical(this, other) || other is MemoriesUpdate &&
|
|
|
|
bool operator ==(Object other) => identical(this, other) || other is MemoriesUpdate &&
|
|
|
|
|
|
|
|
other.duration == duration &&
|
|
|
|
other.enabled == enabled;
|
|
|
|
other.enabled == enabled;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
int get hashCode =>
|
|
|
|
int get hashCode =>
|
|
|
|
// ignore: unnecessary_parenthesis
|
|
|
|
// ignore: unnecessary_parenthesis
|
|
|
|
|
|
|
|
(duration == null ? 0 : duration!.hashCode) +
|
|
|
|
(enabled == null ? 0 : enabled!.hashCode);
|
|
|
|
(enabled == null ? 0 : enabled!.hashCode);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
String toString() => 'MemoriesUpdate[enabled=$enabled]';
|
|
|
|
String toString() => 'MemoriesUpdate[duration=$duration, enabled=$enabled]';
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final json = <String, dynamic>{};
|
|
|
|
final json = <String, dynamic>{};
|
|
|
|
|
|
|
|
if (this.duration != null) {
|
|
|
|
|
|
|
|
json[r'duration'] = this.duration;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// json[r'duration'] = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (this.enabled != null) {
|
|
|
|
if (this.enabled != null) {
|
|
|
|
json[r'enabled'] = this.enabled;
|
|
|
|
json[r'enabled'] = this.enabled;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -55,6 +72,7 @@ class MemoriesUpdate {
|
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
|
|
|
|
|
|
|
|
return MemoriesUpdate(
|
|
|
|
return MemoriesUpdate(
|
|
|
|
|
|
|
|
duration: mapValueOfType<int>(json, r'duration'),
|
|
|
|
enabled: mapValueOfType<bool>(json, r'enabled'),
|
|
|
|
enabled: mapValueOfType<bool>(json, r'enabled'),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|