|
|
|
|
@ -32,6 +32,7 @@ class SmartSearchDto {
|
|
|
|
|
this.make,
|
|
|
|
|
this.model,
|
|
|
|
|
this.page,
|
|
|
|
|
this.personIds = const [],
|
|
|
|
|
required this.query,
|
|
|
|
|
this.size,
|
|
|
|
|
this.state,
|
|
|
|
|
@ -199,6 +200,8 @@ class SmartSearchDto {
|
|
|
|
|
///
|
|
|
|
|
num? page;
|
|
|
|
|
|
|
|
|
|
List<String> personIds;
|
|
|
|
|
|
|
|
|
|
String query;
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
@ -312,6 +315,7 @@ class SmartSearchDto {
|
|
|
|
|
other.make == make &&
|
|
|
|
|
other.model == model &&
|
|
|
|
|
other.page == page &&
|
|
|
|
|
_deepEquality.equals(other.personIds, personIds) &&
|
|
|
|
|
other.query == query &&
|
|
|
|
|
other.size == size &&
|
|
|
|
|
other.state == state &&
|
|
|
|
|
@ -348,6 +352,7 @@ class SmartSearchDto {
|
|
|
|
|
(make == null ? 0 : make!.hashCode) +
|
|
|
|
|
(model == null ? 0 : model!.hashCode) +
|
|
|
|
|
(page == null ? 0 : page!.hashCode) +
|
|
|
|
|
(personIds.hashCode) +
|
|
|
|
|
(query.hashCode) +
|
|
|
|
|
(size == null ? 0 : size!.hashCode) +
|
|
|
|
|
(state == null ? 0 : state!.hashCode) +
|
|
|
|
|
@ -363,7 +368,7 @@ class SmartSearchDto {
|
|
|
|
|
(withExif == null ? 0 : withExif!.hashCode);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() => 'SmartSearchDto[city=$city, country=$country, createdAfter=$createdAfter, createdBefore=$createdBefore, deviceId=$deviceId, isArchived=$isArchived, isEncoded=$isEncoded, isExternal=$isExternal, isFavorite=$isFavorite, isMotion=$isMotion, isNotInAlbum=$isNotInAlbum, isOffline=$isOffline, isReadOnly=$isReadOnly, isVisible=$isVisible, lensModel=$lensModel, libraryId=$libraryId, make=$make, model=$model, page=$page, query=$query, size=$size, state=$state, takenAfter=$takenAfter, takenBefore=$takenBefore, trashedAfter=$trashedAfter, trashedBefore=$trashedBefore, type=$type, updatedAfter=$updatedAfter, updatedBefore=$updatedBefore, withArchived=$withArchived, withDeleted=$withDeleted, withExif=$withExif]';
|
|
|
|
|
String toString() => 'SmartSearchDto[city=$city, country=$country, createdAfter=$createdAfter, createdBefore=$createdBefore, deviceId=$deviceId, isArchived=$isArchived, isEncoded=$isEncoded, isExternal=$isExternal, isFavorite=$isFavorite, isMotion=$isMotion, isNotInAlbum=$isNotInAlbum, isOffline=$isOffline, isReadOnly=$isReadOnly, isVisible=$isVisible, lensModel=$lensModel, libraryId=$libraryId, make=$make, model=$model, page=$page, personIds=$personIds, query=$query, size=$size, state=$state, takenAfter=$takenAfter, takenBefore=$takenBefore, trashedAfter=$trashedAfter, trashedBefore=$trashedBefore, type=$type, updatedAfter=$updatedAfter, updatedBefore=$updatedBefore, withArchived=$withArchived, withDeleted=$withDeleted, withExif=$withExif]';
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final json = <String, dynamic>{};
|
|
|
|
|
@ -462,6 +467,7 @@ class SmartSearchDto {
|
|
|
|
|
} else {
|
|
|
|
|
// json[r'page'] = null;
|
|
|
|
|
}
|
|
|
|
|
json[r'personIds'] = this.personIds;
|
|
|
|
|
json[r'query'] = this.query;
|
|
|
|
|
if (this.size != null) {
|
|
|
|
|
json[r'size'] = this.size;
|
|
|
|
|
@ -549,6 +555,9 @@ class SmartSearchDto {
|
|
|
|
|
make: mapValueOfType<String>(json, r'make'),
|
|
|
|
|
model: mapValueOfType<String>(json, r'model'),
|
|
|
|
|
page: num.parse('${json[r'page']}'),
|
|
|
|
|
personIds: json[r'personIds'] is Iterable
|
|
|
|
|
? (json[r'personIds'] as Iterable).cast<String>().toList(growable: false)
|
|
|
|
|
: const [],
|
|
|
|
|
query: mapValueOfType<String>(json, r'query')!,
|
|
|
|
|
size: num.parse('${json[r'size']}'),
|
|
|
|
|
state: mapValueOfType<String>(json, r'state'),
|
|
|
|
|
|