|
@@ -15,6 +15,7 @@ class GetAssetByTimeBucketDto {
|
|
GetAssetByTimeBucketDto({
|
|
GetAssetByTimeBucketDto({
|
|
this.timeBucket = const [],
|
|
this.timeBucket = const [],
|
|
this.userId,
|
|
this.userId,
|
|
|
|
+ this.withoutThumbs,
|
|
});
|
|
});
|
|
|
|
|
|
List<String> timeBucket;
|
|
List<String> timeBucket;
|
|
@@ -27,19 +28,30 @@ class GetAssetByTimeBucketDto {
|
|
///
|
|
///
|
|
String? userId;
|
|
String? userId;
|
|
|
|
|
|
|
|
+ /// Include assets without thumbnails
|
|
|
|
+ ///
|
|
|
|
+ /// 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.
|
|
|
|
+ ///
|
|
|
|
+ bool? withoutThumbs;
|
|
|
|
+
|
|
@override
|
|
@override
|
|
bool operator ==(Object other) => identical(this, other) || other is GetAssetByTimeBucketDto &&
|
|
bool operator ==(Object other) => identical(this, other) || other is GetAssetByTimeBucketDto &&
|
|
other.timeBucket == timeBucket &&
|
|
other.timeBucket == timeBucket &&
|
|
- other.userId == userId;
|
|
|
|
|
|
+ other.userId == userId &&
|
|
|
|
+ other.withoutThumbs == withoutThumbs;
|
|
|
|
|
|
@override
|
|
@override
|
|
int get hashCode =>
|
|
int get hashCode =>
|
|
// ignore: unnecessary_parenthesis
|
|
// ignore: unnecessary_parenthesis
|
|
(timeBucket.hashCode) +
|
|
(timeBucket.hashCode) +
|
|
- (userId == null ? 0 : userId!.hashCode);
|
|
|
|
|
|
+ (userId == null ? 0 : userId!.hashCode) +
|
|
|
|
+ (withoutThumbs == null ? 0 : withoutThumbs!.hashCode);
|
|
|
|
|
|
@override
|
|
@override
|
|
- String toString() => 'GetAssetByTimeBucketDto[timeBucket=$timeBucket, userId=$userId]';
|
|
|
|
|
|
+ String toString() => 'GetAssetByTimeBucketDto[timeBucket=$timeBucket, userId=$userId, withoutThumbs=$withoutThumbs]';
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
Map<String, dynamic> toJson() {
|
|
final json = <String, dynamic>{};
|
|
final json = <String, dynamic>{};
|
|
@@ -49,6 +61,11 @@ class GetAssetByTimeBucketDto {
|
|
} else {
|
|
} else {
|
|
// json[r'userId'] = null;
|
|
// json[r'userId'] = null;
|
|
}
|
|
}
|
|
|
|
+ if (this.withoutThumbs != null) {
|
|
|
|
+ json[r'withoutThumbs'] = this.withoutThumbs;
|
|
|
|
+ } else {
|
|
|
|
+ // json[r'withoutThumbs'] = null;
|
|
|
|
+ }
|
|
return json;
|
|
return json;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -75,6 +92,7 @@ class GetAssetByTimeBucketDto {
|
|
? (json[r'timeBucket'] as Iterable).cast<String>().toList(growable: false)
|
|
? (json[r'timeBucket'] as Iterable).cast<String>().toList(growable: false)
|
|
: const [],
|
|
: const [],
|
|
userId: mapValueOfType<String>(json, r'userId'),
|
|
userId: mapValueOfType<String>(json, r'userId'),
|
|
|
|
+ withoutThumbs: mapValueOfType<bool>(json, r'withoutThumbs'),
|
|
);
|
|
);
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|