mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
update openapi models
This commit is contained in:
parent
6e0dbf657d
commit
aa8a8b4513
1
mobile/openapi/lib/api.dart
generated
1
mobile/openapi/lib/api.dart
generated
@ -17,6 +17,7 @@ import 'dart:io';
|
|||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:immich_mobile/utils/openapi_patching.dart';
|
import 'package:immich_mobile/utils/openapi_patching.dart';
|
||||||
|
import 'package:immich_mobile/utils/option.dart';
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:meta/meta.dart';
|
import 'package:meta/meta.dart';
|
||||||
|
28
mobile/openapi/lib/model/activity_response_dto.dart
generated
28
mobile/openapi/lib/model/activity_response_dto.dart
generated
@ -13,17 +13,17 @@ part of openapi.api;
|
|||||||
class ActivityResponseDto {
|
class ActivityResponseDto {
|
||||||
/// Returns a new [ActivityResponseDto] instance.
|
/// Returns a new [ActivityResponseDto] instance.
|
||||||
ActivityResponseDto({
|
ActivityResponseDto({
|
||||||
required this.assetId,
|
this.assetId = const None(),
|
||||||
this.comment,
|
this.comment = const None(),
|
||||||
required this.createdAt,
|
required this.createdAt,
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.type,
|
required this.type,
|
||||||
required this.user,
|
required this.user,
|
||||||
});
|
});
|
||||||
|
|
||||||
String? assetId;
|
Option<String> assetId;
|
||||||
|
|
||||||
String? comment;
|
Option<String> comment;
|
||||||
|
|
||||||
DateTime createdAt;
|
DateTime createdAt;
|
||||||
|
|
||||||
@ -45,8 +45,8 @@ class ActivityResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(assetId == null ? 0 : assetId!.hashCode) +
|
(assetId.hashCode) +
|
||||||
(comment == null ? 0 : comment!.hashCode) +
|
(comment.hashCode) +
|
||||||
(createdAt.hashCode) +
|
(createdAt.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(type.hashCode) +
|
(type.hashCode) +
|
||||||
@ -57,15 +57,19 @@ class ActivityResponseDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.assetId != null) {
|
if (this.assetId.unwrapOrNull() != null) {
|
||||||
json[r'assetId'] = this.assetId;
|
json[r'assetId'] = this.assetId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'assetId'] = null;
|
if(this.assetId.isSome) {
|
||||||
|
json[r'assetId'] = null;
|
||||||
}
|
}
|
||||||
if (this.comment != null) {
|
}
|
||||||
|
if (this.comment.unwrapOrNull() != null) {
|
||||||
json[r'comment'] = this.comment;
|
json[r'comment'] = this.comment;
|
||||||
} else {
|
} else {
|
||||||
// json[r'comment'] = null;
|
if(this.comment.isSome) {
|
||||||
|
json[r'comment'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
@ -83,8 +87,8 @@ class ActivityResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return ActivityResponseDto(
|
return ActivityResponseDto(
|
||||||
assetId: mapValueOfType<String>(json, r'assetId'),
|
assetId: Option.from(mapValueOfType<String>(json, r'assetId')),
|
||||||
comment: mapValueOfType<String>(json, r'comment'),
|
comment: Option.from(mapValueOfType<String>(json, r'comment')),
|
||||||
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
type: ReactionType.fromJson(json[r'type'])!,
|
type: ReactionType.fromJson(json[r'type'])!,
|
||||||
|
14
mobile/openapi/lib/model/album_response_dto.dart
generated
14
mobile/openapi/lib/model/album_response_dto.dart
generated
@ -14,7 +14,7 @@ class AlbumResponseDto {
|
|||||||
/// Returns a new [AlbumResponseDto] instance.
|
/// Returns a new [AlbumResponseDto] instance.
|
||||||
AlbumResponseDto({
|
AlbumResponseDto({
|
||||||
required this.albumName,
|
required this.albumName,
|
||||||
required this.albumThumbnailAssetId,
|
this.albumThumbnailAssetId = const None(),
|
||||||
this.albumUsers = const [],
|
this.albumUsers = const [],
|
||||||
required this.assetCount,
|
required this.assetCount,
|
||||||
this.assets = const [],
|
this.assets = const [],
|
||||||
@ -35,7 +35,7 @@ class AlbumResponseDto {
|
|||||||
|
|
||||||
String albumName;
|
String albumName;
|
||||||
|
|
||||||
String? albumThumbnailAssetId;
|
Option<String> albumThumbnailAssetId;
|
||||||
|
|
||||||
List<AlbumUserResponseDto> albumUsers;
|
List<AlbumUserResponseDto> albumUsers;
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ class AlbumResponseDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(albumName.hashCode) +
|
(albumName.hashCode) +
|
||||||
(albumThumbnailAssetId == null ? 0 : albumThumbnailAssetId!.hashCode) +
|
(albumThumbnailAssetId.hashCode) +
|
||||||
(albumUsers.hashCode) +
|
(albumUsers.hashCode) +
|
||||||
(assetCount.hashCode) +
|
(assetCount.hashCode) +
|
||||||
(assets.hashCode) +
|
(assets.hashCode) +
|
||||||
@ -142,10 +142,12 @@ class AlbumResponseDto {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'albumName'] = this.albumName;
|
json[r'albumName'] = this.albumName;
|
||||||
if (this.albumThumbnailAssetId != null) {
|
if (this.albumThumbnailAssetId.unwrapOrNull() != null) {
|
||||||
json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId;
|
json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'albumThumbnailAssetId'] = null;
|
if(this.albumThumbnailAssetId.isSome) {
|
||||||
|
json[r'albumThumbnailAssetId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'albumUsers'] = this.albumUsers;
|
json[r'albumUsers'] = this.albumUsers;
|
||||||
json[r'assetCount'] = this.assetCount;
|
json[r'assetCount'] = this.assetCount;
|
||||||
@ -192,7 +194,7 @@ class AlbumResponseDto {
|
|||||||
|
|
||||||
return AlbumResponseDto(
|
return AlbumResponseDto(
|
||||||
albumName: mapValueOfType<String>(json, r'albumName')!,
|
albumName: mapValueOfType<String>(json, r'albumName')!,
|
||||||
albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'),
|
albumThumbnailAssetId: Option.from(mapValueOfType<String>(json, r'albumThumbnailAssetId')),
|
||||||
albumUsers: AlbumUserResponseDto.listFromJson(json[r'albumUsers']),
|
albumUsers: AlbumUserResponseDto.listFromJson(json[r'albumUsers']),
|
||||||
assetCount: mapValueOfType<int>(json, r'assetCount')!,
|
assetCount: mapValueOfType<int>(json, r'assetCount')!,
|
||||||
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
||||||
|
14
mobile/openapi/lib/model/asset_bulk_update_dto.dart
generated
14
mobile/openapi/lib/model/asset_bulk_update_dto.dart
generated
@ -14,7 +14,7 @@ class AssetBulkUpdateDto {
|
|||||||
/// Returns a new [AssetBulkUpdateDto] instance.
|
/// Returns a new [AssetBulkUpdateDto] instance.
|
||||||
AssetBulkUpdateDto({
|
AssetBulkUpdateDto({
|
||||||
this.dateTimeOriginal,
|
this.dateTimeOriginal,
|
||||||
this.duplicateId,
|
this.duplicateId = const None(),
|
||||||
this.ids = const [],
|
this.ids = const [],
|
||||||
this.isFavorite,
|
this.isFavorite,
|
||||||
this.latitude,
|
this.latitude,
|
||||||
@ -31,7 +31,7 @@ class AssetBulkUpdateDto {
|
|||||||
///
|
///
|
||||||
String? dateTimeOriginal;
|
String? dateTimeOriginal;
|
||||||
|
|
||||||
String? duplicateId;
|
Option<String> duplicateId;
|
||||||
|
|
||||||
List<String> ids;
|
List<String> ids;
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ class AssetBulkUpdateDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
|
(dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
|
||||||
(duplicateId == null ? 0 : duplicateId!.hashCode) +
|
(duplicateId.hashCode) +
|
||||||
(ids.hashCode) +
|
(ids.hashCode) +
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
(latitude == null ? 0 : latitude!.hashCode) +
|
||||||
@ -110,10 +110,12 @@ class AssetBulkUpdateDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'dateTimeOriginal'] = null;
|
// json[r'dateTimeOriginal'] = null;
|
||||||
}
|
}
|
||||||
if (this.duplicateId != null) {
|
if (this.duplicateId.unwrapOrNull() != null) {
|
||||||
json[r'duplicateId'] = this.duplicateId;
|
json[r'duplicateId'] = this.duplicateId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'duplicateId'] = null;
|
if(this.duplicateId.isSome) {
|
||||||
|
json[r'duplicateId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'ids'] = this.ids;
|
json[r'ids'] = this.ids;
|
||||||
if (this.isFavorite != null) {
|
if (this.isFavorite != null) {
|
||||||
@ -154,7 +156,7 @@ class AssetBulkUpdateDto {
|
|||||||
|
|
||||||
return AssetBulkUpdateDto(
|
return AssetBulkUpdateDto(
|
||||||
dateTimeOriginal: mapValueOfType<String>(json, r'dateTimeOriginal'),
|
dateTimeOriginal: mapValueOfType<String>(json, r'dateTimeOriginal'),
|
||||||
duplicateId: mapValueOfType<String>(json, r'duplicateId'),
|
duplicateId: Option.from(mapValueOfType<String>(json, r'duplicateId')),
|
||||||
ids: json[r'ids'] is Iterable
|
ids: json[r'ids'] is Iterable
|
||||||
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
|
@ -20,7 +20,7 @@ class AssetFaceResponseDto {
|
|||||||
required this.id,
|
required this.id,
|
||||||
required this.imageHeight,
|
required this.imageHeight,
|
||||||
required this.imageWidth,
|
required this.imageWidth,
|
||||||
required this.person,
|
this.person = const None(),
|
||||||
this.sourceType,
|
this.sourceType,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ class AssetFaceResponseDto {
|
|||||||
|
|
||||||
int imageWidth;
|
int imageWidth;
|
||||||
|
|
||||||
PersonResponseDto? person;
|
Option<PersonResponseDto> person;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -70,7 +70,7 @@ class AssetFaceResponseDto {
|
|||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(imageHeight.hashCode) +
|
(imageHeight.hashCode) +
|
||||||
(imageWidth.hashCode) +
|
(imageWidth.hashCode) +
|
||||||
(person == null ? 0 : person!.hashCode) +
|
(person.hashCode) +
|
||||||
(sourceType == null ? 0 : sourceType!.hashCode);
|
(sourceType == null ? 0 : sourceType!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -85,10 +85,12 @@ class AssetFaceResponseDto {
|
|||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
json[r'imageHeight'] = this.imageHeight;
|
json[r'imageHeight'] = this.imageHeight;
|
||||||
json[r'imageWidth'] = this.imageWidth;
|
json[r'imageWidth'] = this.imageWidth;
|
||||||
if (this.person != null) {
|
if (this.person.unwrapOrNull() != null) {
|
||||||
json[r'person'] = this.person;
|
json[r'person'] = this.person;
|
||||||
} else {
|
} else {
|
||||||
// json[r'person'] = null;
|
if(this.person.isSome) {
|
||||||
|
json[r'person'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.sourceType != null) {
|
if (this.sourceType != null) {
|
||||||
json[r'sourceType'] = this.sourceType;
|
json[r'sourceType'] = this.sourceType;
|
||||||
@ -114,7 +116,7 @@ class AssetFaceResponseDto {
|
|||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
imageHeight: mapValueOfType<int>(json, r'imageHeight')!,
|
imageHeight: mapValueOfType<int>(json, r'imageHeight')!,
|
||||||
imageWidth: mapValueOfType<int>(json, r'imageWidth')!,
|
imageWidth: mapValueOfType<int>(json, r'imageWidth')!,
|
||||||
person: PersonResponseDto.fromJson(json[r'person']),
|
person: Option.from(PersonResponseDto.fromJson(json[r'person'])),
|
||||||
sourceType: SourceType.fromJson(json[r'sourceType']),
|
sourceType: SourceType.fromJson(json[r'sourceType']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
70
mobile/openapi/lib/model/asset_response_dto.dart
generated
70
mobile/openapi/lib/model/asset_response_dto.dart
generated
@ -16,7 +16,7 @@ class AssetResponseDto {
|
|||||||
required this.checksum,
|
required this.checksum,
|
||||||
required this.deviceAssetId,
|
required this.deviceAssetId,
|
||||||
required this.deviceId,
|
required this.deviceId,
|
||||||
this.duplicateId,
|
this.duplicateId = const None(),
|
||||||
required this.duration,
|
required this.duration,
|
||||||
this.exifInfo,
|
this.exifInfo,
|
||||||
required this.fileCreatedAt,
|
required this.fileCreatedAt,
|
||||||
@ -27,8 +27,8 @@ class AssetResponseDto {
|
|||||||
required this.isFavorite,
|
required this.isFavorite,
|
||||||
required this.isOffline,
|
required this.isOffline,
|
||||||
required this.isTrashed,
|
required this.isTrashed,
|
||||||
this.libraryId,
|
this.libraryId = const None(),
|
||||||
this.livePhotoVideoId,
|
this.livePhotoVideoId = const None(),
|
||||||
required this.localDateTime,
|
required this.localDateTime,
|
||||||
required this.originalFileName,
|
required this.originalFileName,
|
||||||
this.originalMimeType,
|
this.originalMimeType,
|
||||||
@ -37,9 +37,9 @@ class AssetResponseDto {
|
|||||||
required this.ownerId,
|
required this.ownerId,
|
||||||
this.people = const [],
|
this.people = const [],
|
||||||
this.resized,
|
this.resized,
|
||||||
this.stack,
|
this.stack = const None(),
|
||||||
this.tags = const [],
|
this.tags = const [],
|
||||||
required this.thumbhash,
|
this.thumbhash = const None(),
|
||||||
required this.type,
|
required this.type,
|
||||||
this.unassignedFaces = const [],
|
this.unassignedFaces = const [],
|
||||||
required this.updatedAt,
|
required this.updatedAt,
|
||||||
@ -53,7 +53,7 @@ class AssetResponseDto {
|
|||||||
|
|
||||||
String deviceId;
|
String deviceId;
|
||||||
|
|
||||||
String? duplicateId;
|
Option<String> duplicateId;
|
||||||
|
|
||||||
String duration;
|
String duration;
|
||||||
|
|
||||||
@ -82,9 +82,9 @@ class AssetResponseDto {
|
|||||||
bool isTrashed;
|
bool isTrashed;
|
||||||
|
|
||||||
/// This property was deprecated in v1.106.0
|
/// This property was deprecated in v1.106.0
|
||||||
String? libraryId;
|
Option<String> libraryId;
|
||||||
|
|
||||||
String? livePhotoVideoId;
|
Option<String> livePhotoVideoId;
|
||||||
|
|
||||||
DateTime localDateTime;
|
DateTime localDateTime;
|
||||||
|
|
||||||
@ -121,11 +121,11 @@ class AssetResponseDto {
|
|||||||
///
|
///
|
||||||
bool? resized;
|
bool? resized;
|
||||||
|
|
||||||
AssetStackResponseDto? stack;
|
Option<AssetStackResponseDto> stack;
|
||||||
|
|
||||||
List<TagResponseDto> tags;
|
List<TagResponseDto> tags;
|
||||||
|
|
||||||
String? thumbhash;
|
Option<String> thumbhash;
|
||||||
|
|
||||||
AssetTypeEnum type;
|
AssetTypeEnum type;
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ class AssetResponseDto {
|
|||||||
(checksum.hashCode) +
|
(checksum.hashCode) +
|
||||||
(deviceAssetId.hashCode) +
|
(deviceAssetId.hashCode) +
|
||||||
(deviceId.hashCode) +
|
(deviceId.hashCode) +
|
||||||
(duplicateId == null ? 0 : duplicateId!.hashCode) +
|
(duplicateId.hashCode) +
|
||||||
(duration.hashCode) +
|
(duration.hashCode) +
|
||||||
(exifInfo == null ? 0 : exifInfo!.hashCode) +
|
(exifInfo == null ? 0 : exifInfo!.hashCode) +
|
||||||
(fileCreatedAt.hashCode) +
|
(fileCreatedAt.hashCode) +
|
||||||
@ -186,8 +186,8 @@ class AssetResponseDto {
|
|||||||
(isFavorite.hashCode) +
|
(isFavorite.hashCode) +
|
||||||
(isOffline.hashCode) +
|
(isOffline.hashCode) +
|
||||||
(isTrashed.hashCode) +
|
(isTrashed.hashCode) +
|
||||||
(libraryId == null ? 0 : libraryId!.hashCode) +
|
(libraryId.hashCode) +
|
||||||
(livePhotoVideoId == null ? 0 : livePhotoVideoId!.hashCode) +
|
(livePhotoVideoId.hashCode) +
|
||||||
(localDateTime.hashCode) +
|
(localDateTime.hashCode) +
|
||||||
(originalFileName.hashCode) +
|
(originalFileName.hashCode) +
|
||||||
(originalMimeType == null ? 0 : originalMimeType!.hashCode) +
|
(originalMimeType == null ? 0 : originalMimeType!.hashCode) +
|
||||||
@ -196,9 +196,9 @@ class AssetResponseDto {
|
|||||||
(ownerId.hashCode) +
|
(ownerId.hashCode) +
|
||||||
(people.hashCode) +
|
(people.hashCode) +
|
||||||
(resized == null ? 0 : resized!.hashCode) +
|
(resized == null ? 0 : resized!.hashCode) +
|
||||||
(stack == null ? 0 : stack!.hashCode) +
|
(stack.hashCode) +
|
||||||
(tags.hashCode) +
|
(tags.hashCode) +
|
||||||
(thumbhash == null ? 0 : thumbhash!.hashCode) +
|
(thumbhash.hashCode) +
|
||||||
(type.hashCode) +
|
(type.hashCode) +
|
||||||
(unassignedFaces.hashCode) +
|
(unassignedFaces.hashCode) +
|
||||||
(updatedAt.hashCode) +
|
(updatedAt.hashCode) +
|
||||||
@ -212,10 +212,12 @@ class AssetResponseDto {
|
|||||||
json[r'checksum'] = this.checksum;
|
json[r'checksum'] = this.checksum;
|
||||||
json[r'deviceAssetId'] = this.deviceAssetId;
|
json[r'deviceAssetId'] = this.deviceAssetId;
|
||||||
json[r'deviceId'] = this.deviceId;
|
json[r'deviceId'] = this.deviceId;
|
||||||
if (this.duplicateId != null) {
|
if (this.duplicateId.unwrapOrNull() != null) {
|
||||||
json[r'duplicateId'] = this.duplicateId;
|
json[r'duplicateId'] = this.duplicateId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'duplicateId'] = null;
|
if(this.duplicateId.isSome) {
|
||||||
|
json[r'duplicateId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'duration'] = this.duration;
|
json[r'duration'] = this.duration;
|
||||||
if (this.exifInfo != null) {
|
if (this.exifInfo != null) {
|
||||||
@ -231,15 +233,19 @@ class AssetResponseDto {
|
|||||||
json[r'isFavorite'] = this.isFavorite;
|
json[r'isFavorite'] = this.isFavorite;
|
||||||
json[r'isOffline'] = this.isOffline;
|
json[r'isOffline'] = this.isOffline;
|
||||||
json[r'isTrashed'] = this.isTrashed;
|
json[r'isTrashed'] = this.isTrashed;
|
||||||
if (this.libraryId != null) {
|
if (this.libraryId.unwrapOrNull() != null) {
|
||||||
json[r'libraryId'] = this.libraryId;
|
json[r'libraryId'] = this.libraryId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'libraryId'] = null;
|
if(this.libraryId.isSome) {
|
||||||
|
json[r'libraryId'] = null;
|
||||||
}
|
}
|
||||||
if (this.livePhotoVideoId != null) {
|
}
|
||||||
|
if (this.livePhotoVideoId.unwrapOrNull() != null) {
|
||||||
json[r'livePhotoVideoId'] = this.livePhotoVideoId;
|
json[r'livePhotoVideoId'] = this.livePhotoVideoId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'livePhotoVideoId'] = null;
|
if(this.livePhotoVideoId.isSome) {
|
||||||
|
json[r'livePhotoVideoId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'localDateTime'] = this.localDateTime.toUtc().toIso8601String();
|
json[r'localDateTime'] = this.localDateTime.toUtc().toIso8601String();
|
||||||
json[r'originalFileName'] = this.originalFileName;
|
json[r'originalFileName'] = this.originalFileName;
|
||||||
@ -261,16 +267,20 @@ class AssetResponseDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'resized'] = null;
|
// json[r'resized'] = null;
|
||||||
}
|
}
|
||||||
if (this.stack != null) {
|
if (this.stack.unwrapOrNull() != null) {
|
||||||
json[r'stack'] = this.stack;
|
json[r'stack'] = this.stack;
|
||||||
} else {
|
} else {
|
||||||
// json[r'stack'] = null;
|
if(this.stack.isSome) {
|
||||||
|
json[r'stack'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'tags'] = this.tags;
|
json[r'tags'] = this.tags;
|
||||||
if (this.thumbhash != null) {
|
if (this.thumbhash.unwrapOrNull() != null) {
|
||||||
json[r'thumbhash'] = this.thumbhash;
|
json[r'thumbhash'] = this.thumbhash;
|
||||||
} else {
|
} else {
|
||||||
// json[r'thumbhash'] = null;
|
if(this.thumbhash.isSome) {
|
||||||
|
json[r'thumbhash'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'type'] = this.type;
|
json[r'type'] = this.type;
|
||||||
json[r'unassignedFaces'] = this.unassignedFaces;
|
json[r'unassignedFaces'] = this.unassignedFaces;
|
||||||
@ -291,7 +301,7 @@ class AssetResponseDto {
|
|||||||
checksum: mapValueOfType<String>(json, r'checksum')!,
|
checksum: mapValueOfType<String>(json, r'checksum')!,
|
||||||
deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!,
|
deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!,
|
||||||
deviceId: mapValueOfType<String>(json, r'deviceId')!,
|
deviceId: mapValueOfType<String>(json, r'deviceId')!,
|
||||||
duplicateId: mapValueOfType<String>(json, r'duplicateId'),
|
duplicateId: Option.from(mapValueOfType<String>(json, r'duplicateId')),
|
||||||
duration: mapValueOfType<String>(json, r'duration')!,
|
duration: mapValueOfType<String>(json, r'duration')!,
|
||||||
exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']),
|
exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']),
|
||||||
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!,
|
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!,
|
||||||
@ -302,8 +312,8 @@ class AssetResponseDto {
|
|||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
||||||
isOffline: mapValueOfType<bool>(json, r'isOffline')!,
|
isOffline: mapValueOfType<bool>(json, r'isOffline')!,
|
||||||
isTrashed: mapValueOfType<bool>(json, r'isTrashed')!,
|
isTrashed: mapValueOfType<bool>(json, r'isTrashed')!,
|
||||||
libraryId: mapValueOfType<String>(json, r'libraryId'),
|
libraryId: Option.from(mapValueOfType<String>(json, r'libraryId')),
|
||||||
livePhotoVideoId: mapValueOfType<String>(json, r'livePhotoVideoId'),
|
livePhotoVideoId: Option.from(mapValueOfType<String>(json, r'livePhotoVideoId')),
|
||||||
localDateTime: mapDateTime(json, r'localDateTime', r'')!,
|
localDateTime: mapDateTime(json, r'localDateTime', r'')!,
|
||||||
originalFileName: mapValueOfType<String>(json, r'originalFileName')!,
|
originalFileName: mapValueOfType<String>(json, r'originalFileName')!,
|
||||||
originalMimeType: mapValueOfType<String>(json, r'originalMimeType'),
|
originalMimeType: mapValueOfType<String>(json, r'originalMimeType'),
|
||||||
@ -312,9 +322,9 @@ class AssetResponseDto {
|
|||||||
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
||||||
people: PersonWithFacesResponseDto.listFromJson(json[r'people']),
|
people: PersonWithFacesResponseDto.listFromJson(json[r'people']),
|
||||||
resized: mapValueOfType<bool>(json, r'resized'),
|
resized: mapValueOfType<bool>(json, r'resized'),
|
||||||
stack: AssetStackResponseDto.fromJson(json[r'stack']),
|
stack: Option.from(AssetStackResponseDto.fromJson(json[r'stack'])),
|
||||||
tags: TagResponseDto.listFromJson(json[r'tags']),
|
tags: TagResponseDto.listFromJson(json[r'tags']),
|
||||||
thumbhash: mapValueOfType<String>(json, r'thumbhash'),
|
thumbhash: Option.from(mapValueOfType<String>(json, r'thumbhash')),
|
||||||
type: AssetTypeEnum.fromJson(json[r'type'])!,
|
type: AssetTypeEnum.fromJson(json[r'type'])!,
|
||||||
unassignedFaces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'unassignedFaces']),
|
unassignedFaces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'unassignedFaces']),
|
||||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
||||||
|
328
mobile/openapi/lib/model/exif_response_dto.dart
generated
328
mobile/openapi/lib/model/exif_response_dto.dart
generated
@ -13,73 +13,73 @@ part of openapi.api;
|
|||||||
class ExifResponseDto {
|
class ExifResponseDto {
|
||||||
/// Returns a new [ExifResponseDto] instance.
|
/// Returns a new [ExifResponseDto] instance.
|
||||||
ExifResponseDto({
|
ExifResponseDto({
|
||||||
this.city,
|
this.city = const None(),
|
||||||
this.country,
|
this.country = const None(),
|
||||||
this.dateTimeOriginal,
|
this.dateTimeOriginal = const None(),
|
||||||
this.description,
|
this.description = const None(),
|
||||||
this.exifImageHeight,
|
this.exifImageHeight = const None(),
|
||||||
this.exifImageWidth,
|
this.exifImageWidth = const None(),
|
||||||
this.exposureTime,
|
this.exposureTime = const None(),
|
||||||
this.fNumber,
|
this.fNumber = const None(),
|
||||||
this.fileSizeInByte,
|
this.fileSizeInByte = const None(),
|
||||||
this.focalLength,
|
this.focalLength = const None(),
|
||||||
this.iso,
|
this.iso = const None(),
|
||||||
this.latitude,
|
this.latitude = const None(),
|
||||||
this.lensModel,
|
this.lensModel = const None(),
|
||||||
this.longitude,
|
this.longitude = const None(),
|
||||||
this.make,
|
this.make = const None(),
|
||||||
this.model,
|
this.model = const None(),
|
||||||
this.modifyDate,
|
this.modifyDate = const None(),
|
||||||
this.orientation,
|
this.orientation = const None(),
|
||||||
this.projectionType,
|
this.projectionType = const None(),
|
||||||
this.rating,
|
this.rating = const None(),
|
||||||
this.state,
|
this.state = const None(),
|
||||||
this.timeZone,
|
this.timeZone = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
DateTime? dateTimeOriginal;
|
Option<DateTime> dateTimeOriginal;
|
||||||
|
|
||||||
String? description;
|
Option<String> description;
|
||||||
|
|
||||||
num? exifImageHeight;
|
Option<num> exifImageHeight;
|
||||||
|
|
||||||
num? exifImageWidth;
|
Option<num> exifImageWidth;
|
||||||
|
|
||||||
String? exposureTime;
|
Option<String> exposureTime;
|
||||||
|
|
||||||
num? fNumber;
|
Option<num> fNumber;
|
||||||
|
|
||||||
int? fileSizeInByte;
|
Option<int> fileSizeInByte;
|
||||||
|
|
||||||
num? focalLength;
|
Option<num> focalLength;
|
||||||
|
|
||||||
num? iso;
|
Option<num> iso;
|
||||||
|
|
||||||
num? latitude;
|
Option<num> latitude;
|
||||||
|
|
||||||
String? lensModel;
|
Option<String> lensModel;
|
||||||
|
|
||||||
num? longitude;
|
Option<num> longitude;
|
||||||
|
|
||||||
String? make;
|
Option<String> make;
|
||||||
|
|
||||||
String? model;
|
Option<String> model;
|
||||||
|
|
||||||
DateTime? modifyDate;
|
Option<DateTime> modifyDate;
|
||||||
|
|
||||||
String? orientation;
|
Option<String> orientation;
|
||||||
|
|
||||||
String? projectionType;
|
Option<String> projectionType;
|
||||||
|
|
||||||
num? rating;
|
Option<num> rating;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
String? timeZone;
|
Option<String> timeZone;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto &&
|
bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto &&
|
||||||
@ -109,143 +109,187 @@ class ExifResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
|
(dateTimeOriginal.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description.hashCode) +
|
||||||
(exifImageHeight == null ? 0 : exifImageHeight!.hashCode) +
|
(exifImageHeight.hashCode) +
|
||||||
(exifImageWidth == null ? 0 : exifImageWidth!.hashCode) +
|
(exifImageWidth.hashCode) +
|
||||||
(exposureTime == null ? 0 : exposureTime!.hashCode) +
|
(exposureTime.hashCode) +
|
||||||
(fNumber == null ? 0 : fNumber!.hashCode) +
|
(fNumber.hashCode) +
|
||||||
(fileSizeInByte == null ? 0 : fileSizeInByte!.hashCode) +
|
(fileSizeInByte.hashCode) +
|
||||||
(focalLength == null ? 0 : focalLength!.hashCode) +
|
(focalLength.hashCode) +
|
||||||
(iso == null ? 0 : iso!.hashCode) +
|
(iso.hashCode) +
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
(latitude.hashCode) +
|
||||||
(lensModel == null ? 0 : lensModel!.hashCode) +
|
(lensModel.hashCode) +
|
||||||
(longitude == null ? 0 : longitude!.hashCode) +
|
(longitude.hashCode) +
|
||||||
(make == null ? 0 : make!.hashCode) +
|
(make.hashCode) +
|
||||||
(model == null ? 0 : model!.hashCode) +
|
(model.hashCode) +
|
||||||
(modifyDate == null ? 0 : modifyDate!.hashCode) +
|
(modifyDate.hashCode) +
|
||||||
(orientation == null ? 0 : orientation!.hashCode) +
|
(orientation.hashCode) +
|
||||||
(projectionType == null ? 0 : projectionType!.hashCode) +
|
(projectionType.hashCode) +
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
(rating.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode) +
|
(state.hashCode) +
|
||||||
(timeZone == null ? 0 : timeZone!.hashCode);
|
(timeZone.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'ExifResponseDto[city=$city, country=$country, dateTimeOriginal=$dateTimeOriginal, description=$description, exifImageHeight=$exifImageHeight, exifImageWidth=$exifImageWidth, exposureTime=$exposureTime, fNumber=$fNumber, fileSizeInByte=$fileSizeInByte, focalLength=$focalLength, iso=$iso, latitude=$latitude, lensModel=$lensModel, longitude=$longitude, make=$make, model=$model, modifyDate=$modifyDate, orientation=$orientation, projectionType=$projectionType, rating=$rating, state=$state, timeZone=$timeZone]';
|
String toString() => 'ExifResponseDto[city=$city, country=$country, dateTimeOriginal=$dateTimeOriginal, description=$description, exifImageHeight=$exifImageHeight, exifImageWidth=$exifImageWidth, exposureTime=$exposureTime, fNumber=$fNumber, fileSizeInByte=$fileSizeInByte, focalLength=$focalLength, iso=$iso, latitude=$latitude, lensModel=$lensModel, longitude=$longitude, make=$make, model=$model, modifyDate=$modifyDate, orientation=$orientation, projectionType=$projectionType, rating=$rating, state=$state, timeZone=$timeZone]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
}
|
}
|
||||||
if (this.dateTimeOriginal != null) {
|
}
|
||||||
json[r'dateTimeOriginal'] = this.dateTimeOriginal!.toUtc().toIso8601String();
|
if (this.dateTimeOriginal.unwrapOrNull() != null) {
|
||||||
|
json[r'dateTimeOriginal'] = this.dateTimeOriginal.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'dateTimeOriginal'] = null;
|
if(this.dateTimeOriginal.isSome) {
|
||||||
|
json[r'dateTimeOriginal'] = null;
|
||||||
}
|
}
|
||||||
if (this.description != null) {
|
}
|
||||||
|
if (this.description.unwrapOrNull() != null) {
|
||||||
json[r'description'] = this.description;
|
json[r'description'] = this.description;
|
||||||
} else {
|
} else {
|
||||||
// json[r'description'] = null;
|
if(this.description.isSome) {
|
||||||
|
json[r'description'] = null;
|
||||||
}
|
}
|
||||||
if (this.exifImageHeight != null) {
|
}
|
||||||
|
if (this.exifImageHeight.unwrapOrNull() != null) {
|
||||||
json[r'exifImageHeight'] = this.exifImageHeight;
|
json[r'exifImageHeight'] = this.exifImageHeight;
|
||||||
} else {
|
} else {
|
||||||
// json[r'exifImageHeight'] = null;
|
if(this.exifImageHeight.isSome) {
|
||||||
|
json[r'exifImageHeight'] = null;
|
||||||
}
|
}
|
||||||
if (this.exifImageWidth != null) {
|
}
|
||||||
|
if (this.exifImageWidth.unwrapOrNull() != null) {
|
||||||
json[r'exifImageWidth'] = this.exifImageWidth;
|
json[r'exifImageWidth'] = this.exifImageWidth;
|
||||||
} else {
|
} else {
|
||||||
// json[r'exifImageWidth'] = null;
|
if(this.exifImageWidth.isSome) {
|
||||||
|
json[r'exifImageWidth'] = null;
|
||||||
}
|
}
|
||||||
if (this.exposureTime != null) {
|
}
|
||||||
|
if (this.exposureTime.unwrapOrNull() != null) {
|
||||||
json[r'exposureTime'] = this.exposureTime;
|
json[r'exposureTime'] = this.exposureTime;
|
||||||
} else {
|
} else {
|
||||||
// json[r'exposureTime'] = null;
|
if(this.exposureTime.isSome) {
|
||||||
|
json[r'exposureTime'] = null;
|
||||||
}
|
}
|
||||||
if (this.fNumber != null) {
|
}
|
||||||
|
if (this.fNumber.unwrapOrNull() != null) {
|
||||||
json[r'fNumber'] = this.fNumber;
|
json[r'fNumber'] = this.fNumber;
|
||||||
} else {
|
} else {
|
||||||
// json[r'fNumber'] = null;
|
if(this.fNumber.isSome) {
|
||||||
|
json[r'fNumber'] = null;
|
||||||
}
|
}
|
||||||
if (this.fileSizeInByte != null) {
|
}
|
||||||
|
if (this.fileSizeInByte.unwrapOrNull() != null) {
|
||||||
json[r'fileSizeInByte'] = this.fileSizeInByte;
|
json[r'fileSizeInByte'] = this.fileSizeInByte;
|
||||||
} else {
|
} else {
|
||||||
// json[r'fileSizeInByte'] = null;
|
if(this.fileSizeInByte.isSome) {
|
||||||
|
json[r'fileSizeInByte'] = null;
|
||||||
}
|
}
|
||||||
if (this.focalLength != null) {
|
}
|
||||||
|
if (this.focalLength.unwrapOrNull() != null) {
|
||||||
json[r'focalLength'] = this.focalLength;
|
json[r'focalLength'] = this.focalLength;
|
||||||
} else {
|
} else {
|
||||||
// json[r'focalLength'] = null;
|
if(this.focalLength.isSome) {
|
||||||
|
json[r'focalLength'] = null;
|
||||||
}
|
}
|
||||||
if (this.iso != null) {
|
}
|
||||||
|
if (this.iso.unwrapOrNull() != null) {
|
||||||
json[r'iso'] = this.iso;
|
json[r'iso'] = this.iso;
|
||||||
} else {
|
} else {
|
||||||
// json[r'iso'] = null;
|
if(this.iso.isSome) {
|
||||||
|
json[r'iso'] = null;
|
||||||
}
|
}
|
||||||
if (this.latitude != null) {
|
}
|
||||||
|
if (this.latitude.unwrapOrNull() != null) {
|
||||||
json[r'latitude'] = this.latitude;
|
json[r'latitude'] = this.latitude;
|
||||||
} else {
|
} else {
|
||||||
// json[r'latitude'] = null;
|
if(this.latitude.isSome) {
|
||||||
|
json[r'latitude'] = null;
|
||||||
}
|
}
|
||||||
if (this.lensModel != null) {
|
}
|
||||||
|
if (this.lensModel.unwrapOrNull() != null) {
|
||||||
json[r'lensModel'] = this.lensModel;
|
json[r'lensModel'] = this.lensModel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lensModel'] = null;
|
if(this.lensModel.isSome) {
|
||||||
|
json[r'lensModel'] = null;
|
||||||
}
|
}
|
||||||
if (this.longitude != null) {
|
}
|
||||||
|
if (this.longitude.unwrapOrNull() != null) {
|
||||||
json[r'longitude'] = this.longitude;
|
json[r'longitude'] = this.longitude;
|
||||||
} else {
|
} else {
|
||||||
// json[r'longitude'] = null;
|
if(this.longitude.isSome) {
|
||||||
|
json[r'longitude'] = null;
|
||||||
}
|
}
|
||||||
if (this.make != null) {
|
}
|
||||||
|
if (this.make.unwrapOrNull() != null) {
|
||||||
json[r'make'] = this.make;
|
json[r'make'] = this.make;
|
||||||
} else {
|
} else {
|
||||||
// json[r'make'] = null;
|
if(this.make.isSome) {
|
||||||
|
json[r'make'] = null;
|
||||||
}
|
}
|
||||||
if (this.model != null) {
|
}
|
||||||
|
if (this.model.unwrapOrNull() != null) {
|
||||||
json[r'model'] = this.model;
|
json[r'model'] = this.model;
|
||||||
} else {
|
} else {
|
||||||
// json[r'model'] = null;
|
if(this.model.isSome) {
|
||||||
|
json[r'model'] = null;
|
||||||
}
|
}
|
||||||
if (this.modifyDate != null) {
|
}
|
||||||
json[r'modifyDate'] = this.modifyDate!.toUtc().toIso8601String();
|
if (this.modifyDate.unwrapOrNull() != null) {
|
||||||
|
json[r'modifyDate'] = this.modifyDate.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'modifyDate'] = null;
|
if(this.modifyDate.isSome) {
|
||||||
|
json[r'modifyDate'] = null;
|
||||||
}
|
}
|
||||||
if (this.orientation != null) {
|
}
|
||||||
|
if (this.orientation.unwrapOrNull() != null) {
|
||||||
json[r'orientation'] = this.orientation;
|
json[r'orientation'] = this.orientation;
|
||||||
} else {
|
} else {
|
||||||
// json[r'orientation'] = null;
|
if(this.orientation.isSome) {
|
||||||
|
json[r'orientation'] = null;
|
||||||
}
|
}
|
||||||
if (this.projectionType != null) {
|
}
|
||||||
|
if (this.projectionType.unwrapOrNull() != null) {
|
||||||
json[r'projectionType'] = this.projectionType;
|
json[r'projectionType'] = this.projectionType;
|
||||||
} else {
|
} else {
|
||||||
// json[r'projectionType'] = null;
|
if(this.projectionType.isSome) {
|
||||||
|
json[r'projectionType'] = null;
|
||||||
}
|
}
|
||||||
if (this.rating != null) {
|
}
|
||||||
|
if (this.rating.unwrapOrNull() != null) {
|
||||||
json[r'rating'] = this.rating;
|
json[r'rating'] = this.rating;
|
||||||
} else {
|
} else {
|
||||||
// json[r'rating'] = null;
|
if(this.rating.isSome) {
|
||||||
|
json[r'rating'] = null;
|
||||||
}
|
}
|
||||||
if (this.state != null) {
|
}
|
||||||
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
}
|
}
|
||||||
if (this.timeZone != null) {
|
}
|
||||||
|
if (this.timeZone.unwrapOrNull() != null) {
|
||||||
json[r'timeZone'] = this.timeZone;
|
json[r'timeZone'] = this.timeZone;
|
||||||
} else {
|
} else {
|
||||||
// json[r'timeZone'] = null;
|
if(this.timeZone.isSome) {
|
||||||
|
json[r'timeZone'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -259,44 +303,44 @@ class ExifResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return ExifResponseDto(
|
return ExifResponseDto(
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''),
|
dateTimeOriginal: Option.from(mapDateTime(json, r'dateTimeOriginal', r'')),
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: Option.from(mapValueOfType<String>(json, r'description')),
|
||||||
exifImageHeight: json[r'exifImageHeight'] == null
|
exifImageHeight: Option.from(json[r'exifImageHeight'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'exifImageHeight']}'),
|
: num.parse('${json[r'exifImageHeight']}')),
|
||||||
exifImageWidth: json[r'exifImageWidth'] == null
|
exifImageWidth: Option.from(json[r'exifImageWidth'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'exifImageWidth']}'),
|
: num.parse('${json[r'exifImageWidth']}')),
|
||||||
exposureTime: mapValueOfType<String>(json, r'exposureTime'),
|
exposureTime: Option.from(mapValueOfType<String>(json, r'exposureTime')),
|
||||||
fNumber: json[r'fNumber'] == null
|
fNumber: Option.from(json[r'fNumber'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'fNumber']}'),
|
: num.parse('${json[r'fNumber']}')),
|
||||||
fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'),
|
fileSizeInByte: Option.from(mapValueOfType<int>(json, r'fileSizeInByte')),
|
||||||
focalLength: json[r'focalLength'] == null
|
focalLength: Option.from(json[r'focalLength'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'focalLength']}'),
|
: num.parse('${json[r'focalLength']}')),
|
||||||
iso: json[r'iso'] == null
|
iso: Option.from(json[r'iso'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'iso']}'),
|
: num.parse('${json[r'iso']}')),
|
||||||
latitude: json[r'latitude'] == null
|
latitude: Option.from(json[r'latitude'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'latitude']}'),
|
: num.parse('${json[r'latitude']}')),
|
||||||
lensModel: mapValueOfType<String>(json, r'lensModel'),
|
lensModel: Option.from(mapValueOfType<String>(json, r'lensModel')),
|
||||||
longitude: json[r'longitude'] == null
|
longitude: Option.from(json[r'longitude'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'longitude']}'),
|
: num.parse('${json[r'longitude']}')),
|
||||||
make: mapValueOfType<String>(json, r'make'),
|
make: Option.from(mapValueOfType<String>(json, r'make')),
|
||||||
model: mapValueOfType<String>(json, r'model'),
|
model: Option.from(mapValueOfType<String>(json, r'model')),
|
||||||
modifyDate: mapDateTime(json, r'modifyDate', r''),
|
modifyDate: Option.from(mapDateTime(json, r'modifyDate', r'')),
|
||||||
orientation: mapValueOfType<String>(json, r'orientation'),
|
orientation: Option.from(mapValueOfType<String>(json, r'orientation')),
|
||||||
projectionType: mapValueOfType<String>(json, r'projectionType'),
|
projectionType: Option.from(mapValueOfType<String>(json, r'projectionType')),
|
||||||
rating: json[r'rating'] == null
|
rating: Option.from(json[r'rating'] == null
|
||||||
? null
|
? null
|
||||||
: num.parse('${json[r'rating']}'),
|
: num.parse('${json[r'rating']}')),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
timeZone: mapValueOfType<String>(json, r'timeZone'),
|
timeZone: Option.from(mapValueOfType<String>(json, r'timeZone')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
16
mobile/openapi/lib/model/library_response_dto.dart
generated
16
mobile/openapi/lib/model/library_response_dto.dart
generated
@ -20,7 +20,7 @@ class LibraryResponseDto {
|
|||||||
this.importPaths = const [],
|
this.importPaths = const [],
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.ownerId,
|
required this.ownerId,
|
||||||
required this.refreshedAt,
|
this.refreshedAt = const None(),
|
||||||
required this.updatedAt,
|
required this.updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ class LibraryResponseDto {
|
|||||||
|
|
||||||
String ownerId;
|
String ownerId;
|
||||||
|
|
||||||
DateTime? refreshedAt;
|
Option<DateTime> refreshedAt;
|
||||||
|
|
||||||
DateTime updatedAt;
|
DateTime updatedAt;
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ class LibraryResponseDto {
|
|||||||
(importPaths.hashCode) +
|
(importPaths.hashCode) +
|
||||||
(name.hashCode) +
|
(name.hashCode) +
|
||||||
(ownerId.hashCode) +
|
(ownerId.hashCode) +
|
||||||
(refreshedAt == null ? 0 : refreshedAt!.hashCode) +
|
(refreshedAt.hashCode) +
|
||||||
(updatedAt.hashCode);
|
(updatedAt.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -79,10 +79,12 @@ class LibraryResponseDto {
|
|||||||
json[r'importPaths'] = this.importPaths;
|
json[r'importPaths'] = this.importPaths;
|
||||||
json[r'name'] = this.name;
|
json[r'name'] = this.name;
|
||||||
json[r'ownerId'] = this.ownerId;
|
json[r'ownerId'] = this.ownerId;
|
||||||
if (this.refreshedAt != null) {
|
if (this.refreshedAt.unwrapOrNull() != null) {
|
||||||
json[r'refreshedAt'] = this.refreshedAt!.toUtc().toIso8601String();
|
json[r'refreshedAt'] = this.refreshedAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'refreshedAt'] = null;
|
if(this.refreshedAt.isSome) {
|
||||||
|
json[r'refreshedAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
||||||
return json;
|
return json;
|
||||||
@ -108,7 +110,7 @@ class LibraryResponseDto {
|
|||||||
: const [],
|
: const [],
|
||||||
name: mapValueOfType<String>(json, r'name')!,
|
name: mapValueOfType<String>(json, r'name')!,
|
||||||
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
||||||
refreshedAt: mapDateTime(json, r'refreshedAt', r''),
|
refreshedAt: Option.from(mapDateTime(json, r'refreshedAt', r'')),
|
||||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -13,17 +13,17 @@ part of openapi.api;
|
|||||||
class MapMarkerResponseDto {
|
class MapMarkerResponseDto {
|
||||||
/// Returns a new [MapMarkerResponseDto] instance.
|
/// Returns a new [MapMarkerResponseDto] instance.
|
||||||
MapMarkerResponseDto({
|
MapMarkerResponseDto({
|
||||||
required this.city,
|
this.city = const None(),
|
||||||
required this.country,
|
this.country = const None(),
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.lat,
|
required this.lat,
|
||||||
required this.lon,
|
required this.lon,
|
||||||
required this.state,
|
this.state = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
String id;
|
String id;
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ class MapMarkerResponseDto {
|
|||||||
|
|
||||||
double lon;
|
double lon;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto &&
|
bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto &&
|
||||||
@ -45,35 +45,41 @@ class MapMarkerResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(lat.hashCode) +
|
(lat.hashCode) +
|
||||||
(lon.hashCode) +
|
(lon.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode);
|
(state.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'MapMarkerResponseDto[city=$city, country=$country, id=$id, lat=$lat, lon=$lon, state=$state]';
|
String toString() => 'MapMarkerResponseDto[city=$city, country=$country, id=$id, lat=$lat, lon=$lon, state=$state]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
json[r'lat'] = this.lat;
|
json[r'lat'] = this.lat;
|
||||||
json[r'lon'] = this.lon;
|
json[r'lon'] = this.lon;
|
||||||
if (this.state != null) {
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -87,12 +93,12 @@ class MapMarkerResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return MapMarkerResponseDto(
|
return MapMarkerResponseDto(
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
lat: (mapValueOfType<num>(json, r'lat')!).toDouble(),
|
lat: (mapValueOfType<num>(json, r'lat')!).toDouble(),
|
||||||
lon: (mapValueOfType<num>(json, r'lon')!).toDouble(),
|
lon: (mapValueOfType<num>(json, r'lon')!).toDouble(),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -13,16 +13,16 @@ part of openapi.api;
|
|||||||
class MapReverseGeocodeResponseDto {
|
class MapReverseGeocodeResponseDto {
|
||||||
/// Returns a new [MapReverseGeocodeResponseDto] instance.
|
/// Returns a new [MapReverseGeocodeResponseDto] instance.
|
||||||
MapReverseGeocodeResponseDto({
|
MapReverseGeocodeResponseDto({
|
||||||
required this.city,
|
this.city = const None(),
|
||||||
required this.country,
|
this.country = const None(),
|
||||||
required this.state,
|
this.state = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is MapReverseGeocodeResponseDto &&
|
bool operator ==(Object other) => identical(this, other) || other is MapReverseGeocodeResponseDto &&
|
||||||
@ -33,29 +33,35 @@ class MapReverseGeocodeResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode);
|
(state.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'MapReverseGeocodeResponseDto[city=$city, country=$country, state=$state]';
|
String toString() => 'MapReverseGeocodeResponseDto[city=$city, country=$country, state=$state]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
}
|
}
|
||||||
if (this.state != null) {
|
}
|
||||||
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -69,9 +75,9 @@ class MapReverseGeocodeResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return MapReverseGeocodeResponseDto(
|
return MapReverseGeocodeResponseDto(
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
84
mobile/openapi/lib/model/metadata_search_dto.dart
generated
84
mobile/openapi/lib/model/metadata_search_dto.dart
generated
@ -14,8 +14,8 @@ class MetadataSearchDto {
|
|||||||
/// Returns a new [MetadataSearchDto] instance.
|
/// Returns a new [MetadataSearchDto] instance.
|
||||||
MetadataSearchDto({
|
MetadataSearchDto({
|
||||||
this.checksum,
|
this.checksum,
|
||||||
this.city,
|
this.city = const None(),
|
||||||
this.country,
|
this.country = const None(),
|
||||||
this.createdAfter,
|
this.createdAfter,
|
||||||
this.createdBefore,
|
this.createdBefore,
|
||||||
this.description,
|
this.description,
|
||||||
@ -28,10 +28,10 @@ class MetadataSearchDto {
|
|||||||
this.isMotion,
|
this.isMotion,
|
||||||
this.isNotInAlbum,
|
this.isNotInAlbum,
|
||||||
this.isOffline,
|
this.isOffline,
|
||||||
this.lensModel,
|
this.lensModel = const None(),
|
||||||
this.libraryId,
|
this.libraryId = const None(),
|
||||||
this.make,
|
this.make,
|
||||||
this.model,
|
this.model = const None(),
|
||||||
this.order = AssetOrder.desc,
|
this.order = AssetOrder.desc,
|
||||||
this.originalFileName,
|
this.originalFileName,
|
||||||
this.originalPath,
|
this.originalPath,
|
||||||
@ -40,7 +40,7 @@ class MetadataSearchDto {
|
|||||||
this.previewPath,
|
this.previewPath,
|
||||||
this.rating,
|
this.rating,
|
||||||
this.size,
|
this.size,
|
||||||
this.state,
|
this.state = const None(),
|
||||||
this.tagIds = const [],
|
this.tagIds = const [],
|
||||||
this.takenAfter,
|
this.takenAfter,
|
||||||
this.takenBefore,
|
this.takenBefore,
|
||||||
@ -65,9 +65,9 @@ class MetadataSearchDto {
|
|||||||
///
|
///
|
||||||
String? checksum;
|
String? checksum;
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -165,9 +165,9 @@ class MetadataSearchDto {
|
|||||||
///
|
///
|
||||||
bool? isOffline;
|
bool? isOffline;
|
||||||
|
|
||||||
String? lensModel;
|
Option<String> lensModel;
|
||||||
|
|
||||||
String? libraryId;
|
Option<String> libraryId;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -177,7 +177,7 @@ class MetadataSearchDto {
|
|||||||
///
|
///
|
||||||
String? make;
|
String? make;
|
||||||
|
|
||||||
String? model;
|
Option<String> model;
|
||||||
|
|
||||||
AssetOrder order;
|
AssetOrder order;
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ class MetadataSearchDto {
|
|||||||
///
|
///
|
||||||
num? size;
|
num? size;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
List<String> tagIds;
|
List<String> tagIds;
|
||||||
|
|
||||||
@ -393,8 +393,8 @@ class MetadataSearchDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(checksum == null ? 0 : checksum!.hashCode) +
|
(checksum == null ? 0 : checksum!.hashCode) +
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
||||||
(createdBefore == null ? 0 : createdBefore!.hashCode) +
|
(createdBefore == null ? 0 : createdBefore!.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description == null ? 0 : description!.hashCode) +
|
||||||
@ -407,10 +407,10 @@ class MetadataSearchDto {
|
|||||||
(isMotion == null ? 0 : isMotion!.hashCode) +
|
(isMotion == null ? 0 : isMotion!.hashCode) +
|
||||||
(isNotInAlbum == null ? 0 : isNotInAlbum!.hashCode) +
|
(isNotInAlbum == null ? 0 : isNotInAlbum!.hashCode) +
|
||||||
(isOffline == null ? 0 : isOffline!.hashCode) +
|
(isOffline == null ? 0 : isOffline!.hashCode) +
|
||||||
(lensModel == null ? 0 : lensModel!.hashCode) +
|
(lensModel.hashCode) +
|
||||||
(libraryId == null ? 0 : libraryId!.hashCode) +
|
(libraryId.hashCode) +
|
||||||
(make == null ? 0 : make!.hashCode) +
|
(make == null ? 0 : make!.hashCode) +
|
||||||
(model == null ? 0 : model!.hashCode) +
|
(model.hashCode) +
|
||||||
(order.hashCode) +
|
(order.hashCode) +
|
||||||
(originalFileName == null ? 0 : originalFileName!.hashCode) +
|
(originalFileName == null ? 0 : originalFileName!.hashCode) +
|
||||||
(originalPath == null ? 0 : originalPath!.hashCode) +
|
(originalPath == null ? 0 : originalPath!.hashCode) +
|
||||||
@ -419,7 +419,7 @@ class MetadataSearchDto {
|
|||||||
(previewPath == null ? 0 : previewPath!.hashCode) +
|
(previewPath == null ? 0 : previewPath!.hashCode) +
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
(rating == null ? 0 : rating!.hashCode) +
|
||||||
(size == null ? 0 : size!.hashCode) +
|
(size == null ? 0 : size!.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode) +
|
(state.hashCode) +
|
||||||
(tagIds.hashCode) +
|
(tagIds.hashCode) +
|
||||||
(takenAfter == null ? 0 : takenAfter!.hashCode) +
|
(takenAfter == null ? 0 : takenAfter!.hashCode) +
|
||||||
(takenBefore == null ? 0 : takenBefore!.hashCode) +
|
(takenBefore == null ? 0 : takenBefore!.hashCode) +
|
||||||
@ -445,15 +445,19 @@ class MetadataSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'checksum'] = null;
|
// json[r'checksum'] = null;
|
||||||
}
|
}
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.createdAfter != null) {
|
if (this.createdAfter != null) {
|
||||||
json[r'createdAfter'] = this.createdAfter!.toUtc().toIso8601String();
|
json[r'createdAfter'] = this.createdAfter!.toUtc().toIso8601String();
|
||||||
@ -515,25 +519,31 @@ class MetadataSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'isOffline'] = null;
|
// json[r'isOffline'] = null;
|
||||||
}
|
}
|
||||||
if (this.lensModel != null) {
|
if (this.lensModel.unwrapOrNull() != null) {
|
||||||
json[r'lensModel'] = this.lensModel;
|
json[r'lensModel'] = this.lensModel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lensModel'] = null;
|
if(this.lensModel.isSome) {
|
||||||
|
json[r'lensModel'] = null;
|
||||||
}
|
}
|
||||||
if (this.libraryId != null) {
|
}
|
||||||
|
if (this.libraryId.unwrapOrNull() != null) {
|
||||||
json[r'libraryId'] = this.libraryId;
|
json[r'libraryId'] = this.libraryId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'libraryId'] = null;
|
if(this.libraryId.isSome) {
|
||||||
|
json[r'libraryId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.make != null) {
|
if (this.make != null) {
|
||||||
json[r'make'] = this.make;
|
json[r'make'] = this.make;
|
||||||
} else {
|
} else {
|
||||||
// json[r'make'] = null;
|
// json[r'make'] = null;
|
||||||
}
|
}
|
||||||
if (this.model != null) {
|
if (this.model.unwrapOrNull() != null) {
|
||||||
json[r'model'] = this.model;
|
json[r'model'] = this.model;
|
||||||
} else {
|
} else {
|
||||||
// json[r'model'] = null;
|
if(this.model.isSome) {
|
||||||
|
json[r'model'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'order'] = this.order;
|
json[r'order'] = this.order;
|
||||||
if (this.originalFileName != null) {
|
if (this.originalFileName != null) {
|
||||||
@ -567,10 +577,12 @@ class MetadataSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'size'] = null;
|
// json[r'size'] = null;
|
||||||
}
|
}
|
||||||
if (this.state != null) {
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'tagIds'] = this.tagIds;
|
json[r'tagIds'] = this.tagIds;
|
||||||
if (this.takenAfter != null) {
|
if (this.takenAfter != null) {
|
||||||
@ -651,8 +663,8 @@ class MetadataSearchDto {
|
|||||||
|
|
||||||
return MetadataSearchDto(
|
return MetadataSearchDto(
|
||||||
checksum: mapValueOfType<String>(json, r'checksum'),
|
checksum: mapValueOfType<String>(json, r'checksum'),
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
||||||
createdBefore: mapDateTime(json, r'createdBefore', r''),
|
createdBefore: mapDateTime(json, r'createdBefore', r''),
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: mapValueOfType<String>(json, r'description'),
|
||||||
@ -665,10 +677,10 @@ class MetadataSearchDto {
|
|||||||
isMotion: mapValueOfType<bool>(json, r'isMotion'),
|
isMotion: mapValueOfType<bool>(json, r'isMotion'),
|
||||||
isNotInAlbum: mapValueOfType<bool>(json, r'isNotInAlbum'),
|
isNotInAlbum: mapValueOfType<bool>(json, r'isNotInAlbum'),
|
||||||
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
||||||
lensModel: mapValueOfType<String>(json, r'lensModel'),
|
lensModel: Option.from(mapValueOfType<String>(json, r'lensModel')),
|
||||||
libraryId: mapValueOfType<String>(json, r'libraryId'),
|
libraryId: Option.from(mapValueOfType<String>(json, r'libraryId')),
|
||||||
make: mapValueOfType<String>(json, r'make'),
|
make: mapValueOfType<String>(json, r'make'),
|
||||||
model: mapValueOfType<String>(json, r'model'),
|
model: Option.from(mapValueOfType<String>(json, r'model')),
|
||||||
order: AssetOrder.fromJson(json[r'order']) ?? AssetOrder.desc,
|
order: AssetOrder.fromJson(json[r'order']) ?? AssetOrder.desc,
|
||||||
originalFileName: mapValueOfType<String>(json, r'originalFileName'),
|
originalFileName: mapValueOfType<String>(json, r'originalFileName'),
|
||||||
originalPath: mapValueOfType<String>(json, r'originalPath'),
|
originalPath: mapValueOfType<String>(json, r'originalPath'),
|
||||||
@ -679,7 +691,7 @@ class MetadataSearchDto {
|
|||||||
previewPath: mapValueOfType<String>(json, r'previewPath'),
|
previewPath: mapValueOfType<String>(json, r'previewPath'),
|
||||||
rating: num.parse('${json[r'rating']}'),
|
rating: num.parse('${json[r'rating']}'),
|
||||||
size: num.parse('${json[r'size']}'),
|
size: num.parse('${json[r'size']}'),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
tagIds: json[r'tagIds'] is Iterable
|
tagIds: json[r'tagIds'] is Iterable
|
||||||
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
|
@ -14,9 +14,9 @@ class NotificationCreateDto {
|
|||||||
/// Returns a new [NotificationCreateDto] instance.
|
/// Returns a new [NotificationCreateDto] instance.
|
||||||
NotificationCreateDto({
|
NotificationCreateDto({
|
||||||
this.data,
|
this.data,
|
||||||
this.description,
|
this.description = const None(),
|
||||||
this.level,
|
this.level,
|
||||||
this.readAt,
|
this.readAt = const None(),
|
||||||
required this.title,
|
required this.title,
|
||||||
this.type,
|
this.type,
|
||||||
required this.userId,
|
required this.userId,
|
||||||
@ -30,7 +30,7 @@ class NotificationCreateDto {
|
|||||||
///
|
///
|
||||||
Object? data;
|
Object? data;
|
||||||
|
|
||||||
String? description;
|
Option<String> description;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -40,7 +40,7 @@ class NotificationCreateDto {
|
|||||||
///
|
///
|
||||||
NotificationLevel? level;
|
NotificationLevel? level;
|
||||||
|
|
||||||
DateTime? readAt;
|
Option<DateTime> readAt;
|
||||||
|
|
||||||
String title;
|
String title;
|
||||||
|
|
||||||
@ -68,9 +68,9 @@ class NotificationCreateDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(data == null ? 0 : data!.hashCode) +
|
(data == null ? 0 : data!.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description.hashCode) +
|
||||||
(level == null ? 0 : level!.hashCode) +
|
(level == null ? 0 : level!.hashCode) +
|
||||||
(readAt == null ? 0 : readAt!.hashCode) +
|
(readAt.hashCode) +
|
||||||
(title.hashCode) +
|
(title.hashCode) +
|
||||||
(type == null ? 0 : type!.hashCode) +
|
(type == null ? 0 : type!.hashCode) +
|
||||||
(userId.hashCode);
|
(userId.hashCode);
|
||||||
@ -85,20 +85,24 @@ class NotificationCreateDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'data'] = null;
|
// json[r'data'] = null;
|
||||||
}
|
}
|
||||||
if (this.description != null) {
|
if (this.description.unwrapOrNull() != null) {
|
||||||
json[r'description'] = this.description;
|
json[r'description'] = this.description;
|
||||||
} else {
|
} else {
|
||||||
// json[r'description'] = null;
|
if(this.description.isSome) {
|
||||||
|
json[r'description'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.level != null) {
|
if (this.level != null) {
|
||||||
json[r'level'] = this.level;
|
json[r'level'] = this.level;
|
||||||
} else {
|
} else {
|
||||||
// json[r'level'] = null;
|
// json[r'level'] = null;
|
||||||
}
|
}
|
||||||
if (this.readAt != null) {
|
if (this.readAt.unwrapOrNull() != null) {
|
||||||
json[r'readAt'] = this.readAt!.toUtc().toIso8601String();
|
json[r'readAt'] = this.readAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'readAt'] = null;
|
if(this.readAt.isSome) {
|
||||||
|
json[r'readAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'title'] = this.title;
|
json[r'title'] = this.title;
|
||||||
if (this.type != null) {
|
if (this.type != null) {
|
||||||
@ -120,9 +124,9 @@ class NotificationCreateDto {
|
|||||||
|
|
||||||
return NotificationCreateDto(
|
return NotificationCreateDto(
|
||||||
data: mapValueOfType<Object>(json, r'data'),
|
data: mapValueOfType<Object>(json, r'data'),
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: Option.from(mapValueOfType<String>(json, r'description')),
|
||||||
level: NotificationLevel.fromJson(json[r'level']),
|
level: NotificationLevel.fromJson(json[r'level']),
|
||||||
readAt: mapDateTime(json, r'readAt', r''),
|
readAt: Option.from(mapDateTime(json, r'readAt', r'')),
|
||||||
title: mapValueOfType<String>(json, r'title')!,
|
title: mapValueOfType<String>(json, r'title')!,
|
||||||
type: NotificationType.fromJson(json[r'type']),
|
type: NotificationType.fromJson(json[r'type']),
|
||||||
userId: mapValueOfType<String>(json, r'userId')!,
|
userId: mapValueOfType<String>(json, r'userId')!,
|
||||||
|
@ -14,12 +14,12 @@ class NotificationUpdateAllDto {
|
|||||||
/// Returns a new [NotificationUpdateAllDto] instance.
|
/// Returns a new [NotificationUpdateAllDto] instance.
|
||||||
NotificationUpdateAllDto({
|
NotificationUpdateAllDto({
|
||||||
this.ids = const [],
|
this.ids = const [],
|
||||||
this.readAt,
|
this.readAt = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
List<String> ids;
|
List<String> ids;
|
||||||
|
|
||||||
DateTime? readAt;
|
Option<DateTime> readAt;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is NotificationUpdateAllDto &&
|
bool operator ==(Object other) => identical(this, other) || other is NotificationUpdateAllDto &&
|
||||||
@ -30,7 +30,7 @@ class NotificationUpdateAllDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(ids.hashCode) +
|
(ids.hashCode) +
|
||||||
(readAt == null ? 0 : readAt!.hashCode);
|
(readAt.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'NotificationUpdateAllDto[ids=$ids, readAt=$readAt]';
|
String toString() => 'NotificationUpdateAllDto[ids=$ids, readAt=$readAt]';
|
||||||
@ -38,10 +38,12 @@ class NotificationUpdateAllDto {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'ids'] = this.ids;
|
json[r'ids'] = this.ids;
|
||||||
if (this.readAt != null) {
|
if (this.readAt.unwrapOrNull() != null) {
|
||||||
json[r'readAt'] = this.readAt!.toUtc().toIso8601String();
|
json[r'readAt'] = this.readAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'readAt'] = null;
|
if(this.readAt.isSome) {
|
||||||
|
json[r'readAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -58,7 +60,7 @@ class NotificationUpdateAllDto {
|
|||||||
ids: json[r'ids'] is Iterable
|
ids: json[r'ids'] is Iterable
|
||||||
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
readAt: mapDateTime(json, r'readAt', r''),
|
readAt: Option.from(mapDateTime(json, r'readAt', r'')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -13,10 +13,10 @@ part of openapi.api;
|
|||||||
class NotificationUpdateDto {
|
class NotificationUpdateDto {
|
||||||
/// Returns a new [NotificationUpdateDto] instance.
|
/// Returns a new [NotificationUpdateDto] instance.
|
||||||
NotificationUpdateDto({
|
NotificationUpdateDto({
|
||||||
this.readAt,
|
this.readAt = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
DateTime? readAt;
|
Option<DateTime> readAt;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is NotificationUpdateDto &&
|
bool operator ==(Object other) => identical(this, other) || other is NotificationUpdateDto &&
|
||||||
@ -25,17 +25,19 @@ class NotificationUpdateDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(readAt == null ? 0 : readAt!.hashCode);
|
(readAt.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'NotificationUpdateDto[readAt=$readAt]';
|
String toString() => 'NotificationUpdateDto[readAt=$readAt]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.readAt != null) {
|
if (this.readAt.unwrapOrNull() != null) {
|
||||||
json[r'readAt'] = this.readAt!.toUtc().toIso8601String();
|
json[r'readAt'] = this.readAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'readAt'] = null;
|
if(this.readAt.isSome) {
|
||||||
|
json[r'readAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -49,7 +51,7 @@ class NotificationUpdateDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return NotificationUpdateDto(
|
return NotificationUpdateDto(
|
||||||
readAt: mapDateTime(json, r'readAt', r''),
|
readAt: Option.from(mapDateTime(json, r'readAt', r'')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
30
mobile/openapi/lib/model/people_update_item.dart
generated
30
mobile/openapi/lib/model/people_update_item.dart
generated
@ -13,8 +13,8 @@ part of openapi.api;
|
|||||||
class PeopleUpdateItem {
|
class PeopleUpdateItem {
|
||||||
/// Returns a new [PeopleUpdateItem] instance.
|
/// Returns a new [PeopleUpdateItem] instance.
|
||||||
PeopleUpdateItem({
|
PeopleUpdateItem({
|
||||||
this.birthDate,
|
this.birthDate = const None(),
|
||||||
this.color,
|
this.color = const None(),
|
||||||
this.featureFaceAssetId,
|
this.featureFaceAssetId,
|
||||||
required this.id,
|
required this.id,
|
||||||
this.isFavorite,
|
this.isFavorite,
|
||||||
@ -23,9 +23,9 @@ class PeopleUpdateItem {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||||
DateTime? birthDate;
|
Option<DateTime> birthDate;
|
||||||
|
|
||||||
String? color;
|
Option<String> color;
|
||||||
|
|
||||||
/// Asset is used to get the feature face thumbnail.
|
/// Asset is used to get the feature face thumbnail.
|
||||||
///
|
///
|
||||||
@ -78,8 +78,8 @@ class PeopleUpdateItem {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(birthDate == null ? 0 : birthDate!.hashCode) +
|
(birthDate.hashCode) +
|
||||||
(color == null ? 0 : color!.hashCode) +
|
(color.hashCode) +
|
||||||
(featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode) +
|
(featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
@ -91,15 +91,19 @@ class PeopleUpdateItem {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.birthDate != null) {
|
if (this.birthDate.unwrapOrNull() != null) {
|
||||||
json[r'birthDate'] = _dateFormatter.format(this.birthDate!.toUtc());
|
json[r'birthDate'] = _dateFormatter.format(this.birthDate.unwrap().toUtc());
|
||||||
} else {
|
} else {
|
||||||
// json[r'birthDate'] = null;
|
if(this.birthDate.isSome) {
|
||||||
|
json[r'birthDate'] = null;
|
||||||
}
|
}
|
||||||
if (this.color != null) {
|
}
|
||||||
|
if (this.color.unwrapOrNull() != null) {
|
||||||
json[r'color'] = this.color;
|
json[r'color'] = this.color;
|
||||||
} else {
|
} else {
|
||||||
// json[r'color'] = null;
|
if(this.color.isSome) {
|
||||||
|
json[r'color'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.featureFaceAssetId != null) {
|
if (this.featureFaceAssetId != null) {
|
||||||
json[r'featureFaceAssetId'] = this.featureFaceAssetId;
|
json[r'featureFaceAssetId'] = this.featureFaceAssetId;
|
||||||
@ -134,8 +138,8 @@ class PeopleUpdateItem {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return PeopleUpdateItem(
|
return PeopleUpdateItem(
|
||||||
birthDate: mapDateTime(json, r'birthDate', r''),
|
birthDate: Option.from(mapDateTime(json, r'birthDate', r'')),
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: Option.from(mapValueOfType<String>(json, r'color')),
|
||||||
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
|
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
||||||
|
30
mobile/openapi/lib/model/person_create_dto.dart
generated
30
mobile/openapi/lib/model/person_create_dto.dart
generated
@ -13,17 +13,17 @@ part of openapi.api;
|
|||||||
class PersonCreateDto {
|
class PersonCreateDto {
|
||||||
/// Returns a new [PersonCreateDto] instance.
|
/// Returns a new [PersonCreateDto] instance.
|
||||||
PersonCreateDto({
|
PersonCreateDto({
|
||||||
this.birthDate,
|
this.birthDate = const None(),
|
||||||
this.color,
|
this.color = const None(),
|
||||||
this.isFavorite,
|
this.isFavorite,
|
||||||
this.isHidden,
|
this.isHidden,
|
||||||
this.name,
|
this.name,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||||
DateTime? birthDate;
|
Option<DateTime> birthDate;
|
||||||
|
|
||||||
String? color;
|
Option<String> color;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -62,8 +62,8 @@ class PersonCreateDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(birthDate == null ? 0 : birthDate!.hashCode) +
|
(birthDate.hashCode) +
|
||||||
(color == null ? 0 : color!.hashCode) +
|
(color.hashCode) +
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
(isHidden == null ? 0 : isHidden!.hashCode) +
|
(isHidden == null ? 0 : isHidden!.hashCode) +
|
||||||
(name == null ? 0 : name!.hashCode);
|
(name == null ? 0 : name!.hashCode);
|
||||||
@ -73,15 +73,19 @@ class PersonCreateDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.birthDate != null) {
|
if (this.birthDate.unwrapOrNull() != null) {
|
||||||
json[r'birthDate'] = _dateFormatter.format(this.birthDate!.toUtc());
|
json[r'birthDate'] = _dateFormatter.format(this.birthDate.unwrap().toUtc());
|
||||||
} else {
|
} else {
|
||||||
// json[r'birthDate'] = null;
|
if(this.birthDate.isSome) {
|
||||||
|
json[r'birthDate'] = null;
|
||||||
}
|
}
|
||||||
if (this.color != null) {
|
}
|
||||||
|
if (this.color.unwrapOrNull() != null) {
|
||||||
json[r'color'] = this.color;
|
json[r'color'] = this.color;
|
||||||
} else {
|
} else {
|
||||||
// json[r'color'] = null;
|
if(this.color.isSome) {
|
||||||
|
json[r'color'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.isFavorite != null) {
|
if (this.isFavorite != null) {
|
||||||
json[r'isFavorite'] = this.isFavorite;
|
json[r'isFavorite'] = this.isFavorite;
|
||||||
@ -110,8 +114,8 @@ class PersonCreateDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return PersonCreateDto(
|
return PersonCreateDto(
|
||||||
birthDate: mapDateTime(json, r'birthDate', r''),
|
birthDate: Option.from(mapDateTime(json, r'birthDate', r'')),
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: Option.from(mapValueOfType<String>(json, r'color')),
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
||||||
isHidden: mapValueOfType<bool>(json, r'isHidden'),
|
isHidden: mapValueOfType<bool>(json, r'isHidden'),
|
||||||
name: mapValueOfType<String>(json, r'name'),
|
name: mapValueOfType<String>(json, r'name'),
|
||||||
|
16
mobile/openapi/lib/model/person_response_dto.dart
generated
16
mobile/openapi/lib/model/person_response_dto.dart
generated
@ -13,7 +13,7 @@ part of openapi.api;
|
|||||||
class PersonResponseDto {
|
class PersonResponseDto {
|
||||||
/// Returns a new [PersonResponseDto] instance.
|
/// Returns a new [PersonResponseDto] instance.
|
||||||
PersonResponseDto({
|
PersonResponseDto({
|
||||||
required this.birthDate,
|
this.birthDate = const None(),
|
||||||
this.color,
|
this.color,
|
||||||
required this.id,
|
required this.id,
|
||||||
this.isFavorite,
|
this.isFavorite,
|
||||||
@ -23,7 +23,7 @@ class PersonResponseDto {
|
|||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
DateTime? birthDate;
|
Option<DateTime> birthDate;
|
||||||
|
|
||||||
/// This property was added in v1.126.0
|
/// This property was added in v1.126.0
|
||||||
///
|
///
|
||||||
@ -74,7 +74,7 @@ class PersonResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(birthDate == null ? 0 : birthDate!.hashCode) +
|
(birthDate.hashCode) +
|
||||||
(color == null ? 0 : color!.hashCode) +
|
(color == null ? 0 : color!.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
@ -88,10 +88,12 @@ class PersonResponseDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.birthDate != null) {
|
if (this.birthDate.unwrapOrNull() != null) {
|
||||||
json[r'birthDate'] = _dateFormatter.format(this.birthDate!.toUtc());
|
json[r'birthDate'] = _dateFormatter.format(this.birthDate.unwrap().toUtc());
|
||||||
} else {
|
} else {
|
||||||
// json[r'birthDate'] = null;
|
if(this.birthDate.isSome) {
|
||||||
|
json[r'birthDate'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.color != null) {
|
if (this.color != null) {
|
||||||
json[r'color'] = this.color;
|
json[r'color'] = this.color;
|
||||||
@ -124,7 +126,7 @@ class PersonResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return PersonResponseDto(
|
return PersonResponseDto(
|
||||||
birthDate: mapDateTime(json, r'birthDate', r''),
|
birthDate: Option.from(mapDateTime(json, r'birthDate', r'')),
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: mapValueOfType<String>(json, r'color'),
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
||||||
|
30
mobile/openapi/lib/model/person_update_dto.dart
generated
30
mobile/openapi/lib/model/person_update_dto.dart
generated
@ -13,8 +13,8 @@ part of openapi.api;
|
|||||||
class PersonUpdateDto {
|
class PersonUpdateDto {
|
||||||
/// Returns a new [PersonUpdateDto] instance.
|
/// Returns a new [PersonUpdateDto] instance.
|
||||||
PersonUpdateDto({
|
PersonUpdateDto({
|
||||||
this.birthDate,
|
this.birthDate = const None(),
|
||||||
this.color,
|
this.color = const None(),
|
||||||
this.featureFaceAssetId,
|
this.featureFaceAssetId,
|
||||||
this.isFavorite,
|
this.isFavorite,
|
||||||
this.isHidden,
|
this.isHidden,
|
||||||
@ -22,9 +22,9 @@ class PersonUpdateDto {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||||
DateTime? birthDate;
|
Option<DateTime> birthDate;
|
||||||
|
|
||||||
String? color;
|
Option<String> color;
|
||||||
|
|
||||||
/// Asset is used to get the feature face thumbnail.
|
/// Asset is used to get the feature face thumbnail.
|
||||||
///
|
///
|
||||||
@ -73,8 +73,8 @@ class PersonUpdateDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(birthDate == null ? 0 : birthDate!.hashCode) +
|
(birthDate.hashCode) +
|
||||||
(color == null ? 0 : color!.hashCode) +
|
(color.hashCode) +
|
||||||
(featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode) +
|
(featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode) +
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
(isHidden == null ? 0 : isHidden!.hashCode) +
|
(isHidden == null ? 0 : isHidden!.hashCode) +
|
||||||
@ -85,15 +85,19 @@ class PersonUpdateDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.birthDate != null) {
|
if (this.birthDate.unwrapOrNull() != null) {
|
||||||
json[r'birthDate'] = _dateFormatter.format(this.birthDate!.toUtc());
|
json[r'birthDate'] = _dateFormatter.format(this.birthDate.unwrap().toUtc());
|
||||||
} else {
|
} else {
|
||||||
// json[r'birthDate'] = null;
|
if(this.birthDate.isSome) {
|
||||||
|
json[r'birthDate'] = null;
|
||||||
}
|
}
|
||||||
if (this.color != null) {
|
}
|
||||||
|
if (this.color.unwrapOrNull() != null) {
|
||||||
json[r'color'] = this.color;
|
json[r'color'] = this.color;
|
||||||
} else {
|
} else {
|
||||||
// json[r'color'] = null;
|
if(this.color.isSome) {
|
||||||
|
json[r'color'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.featureFaceAssetId != null) {
|
if (this.featureFaceAssetId != null) {
|
||||||
json[r'featureFaceAssetId'] = this.featureFaceAssetId;
|
json[r'featureFaceAssetId'] = this.featureFaceAssetId;
|
||||||
@ -127,8 +131,8 @@ class PersonUpdateDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return PersonUpdateDto(
|
return PersonUpdateDto(
|
||||||
birthDate: mapDateTime(json, r'birthDate', r''),
|
birthDate: Option.from(mapDateTime(json, r'birthDate', r'')),
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: Option.from(mapValueOfType<String>(json, r'color')),
|
||||||
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
|
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
||||||
isHidden: mapValueOfType<bool>(json, r'isHidden'),
|
isHidden: mapValueOfType<bool>(json, r'isHidden'),
|
||||||
|
@ -13,7 +13,7 @@ part of openapi.api;
|
|||||||
class PersonWithFacesResponseDto {
|
class PersonWithFacesResponseDto {
|
||||||
/// Returns a new [PersonWithFacesResponseDto] instance.
|
/// Returns a new [PersonWithFacesResponseDto] instance.
|
||||||
PersonWithFacesResponseDto({
|
PersonWithFacesResponseDto({
|
||||||
required this.birthDate,
|
this.birthDate = const None(),
|
||||||
this.color,
|
this.color,
|
||||||
this.faces = const [],
|
this.faces = const [],
|
||||||
required this.id,
|
required this.id,
|
||||||
@ -24,7 +24,7 @@ class PersonWithFacesResponseDto {
|
|||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
DateTime? birthDate;
|
Option<DateTime> birthDate;
|
||||||
|
|
||||||
/// This property was added in v1.126.0
|
/// This property was added in v1.126.0
|
||||||
///
|
///
|
||||||
@ -78,7 +78,7 @@ class PersonWithFacesResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(birthDate == null ? 0 : birthDate!.hashCode) +
|
(birthDate.hashCode) +
|
||||||
(color == null ? 0 : color!.hashCode) +
|
(color == null ? 0 : color!.hashCode) +
|
||||||
(faces.hashCode) +
|
(faces.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
@ -93,10 +93,12 @@ class PersonWithFacesResponseDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.birthDate != null) {
|
if (this.birthDate.unwrapOrNull() != null) {
|
||||||
json[r'birthDate'] = _dateFormatter.format(this.birthDate!.toUtc());
|
json[r'birthDate'] = _dateFormatter.format(this.birthDate.unwrap().toUtc());
|
||||||
} else {
|
} else {
|
||||||
// json[r'birthDate'] = null;
|
if(this.birthDate.isSome) {
|
||||||
|
json[r'birthDate'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.color != null) {
|
if (this.color != null) {
|
||||||
json[r'color'] = this.color;
|
json[r'color'] = this.color;
|
||||||
@ -130,7 +132,7 @@ class PersonWithFacesResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return PersonWithFacesResponseDto(
|
return PersonWithFacesResponseDto(
|
||||||
birthDate: mapDateTime(json, r'birthDate', r''),
|
birthDate: Option.from(mapDateTime(json, r'birthDate', r'')),
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: mapValueOfType<String>(json, r'color'),
|
||||||
faces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'faces']),
|
faces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'faces']),
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
|
84
mobile/openapi/lib/model/random_search_dto.dart
generated
84
mobile/openapi/lib/model/random_search_dto.dart
generated
@ -13,8 +13,8 @@ part of openapi.api;
|
|||||||
class RandomSearchDto {
|
class RandomSearchDto {
|
||||||
/// Returns a new [RandomSearchDto] instance.
|
/// Returns a new [RandomSearchDto] instance.
|
||||||
RandomSearchDto({
|
RandomSearchDto({
|
||||||
this.city,
|
this.city = const None(),
|
||||||
this.country,
|
this.country = const None(),
|
||||||
this.createdAfter,
|
this.createdAfter,
|
||||||
this.createdBefore,
|
this.createdBefore,
|
||||||
this.deviceId,
|
this.deviceId,
|
||||||
@ -23,14 +23,14 @@ class RandomSearchDto {
|
|||||||
this.isMotion,
|
this.isMotion,
|
||||||
this.isNotInAlbum,
|
this.isNotInAlbum,
|
||||||
this.isOffline,
|
this.isOffline,
|
||||||
this.lensModel,
|
this.lensModel = const None(),
|
||||||
this.libraryId,
|
this.libraryId = const None(),
|
||||||
this.make,
|
this.make,
|
||||||
this.model,
|
this.model = const None(),
|
||||||
this.personIds = const [],
|
this.personIds = const [],
|
||||||
this.rating,
|
this.rating,
|
||||||
this.size,
|
this.size,
|
||||||
this.state,
|
this.state = const None(),
|
||||||
this.tagIds = const [],
|
this.tagIds = const [],
|
||||||
this.takenAfter,
|
this.takenAfter,
|
||||||
this.takenBefore,
|
this.takenBefore,
|
||||||
@ -46,9 +46,9 @@ class RandomSearchDto {
|
|||||||
this.withStacked,
|
this.withStacked,
|
||||||
});
|
});
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -114,9 +114,9 @@ class RandomSearchDto {
|
|||||||
///
|
///
|
||||||
bool? isOffline;
|
bool? isOffline;
|
||||||
|
|
||||||
String? lensModel;
|
Option<String> lensModel;
|
||||||
|
|
||||||
String? libraryId;
|
Option<String> libraryId;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -126,7 +126,7 @@ class RandomSearchDto {
|
|||||||
///
|
///
|
||||||
String? make;
|
String? make;
|
||||||
|
|
||||||
String? model;
|
Option<String> model;
|
||||||
|
|
||||||
List<String> personIds;
|
List<String> personIds;
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ class RandomSearchDto {
|
|||||||
///
|
///
|
||||||
num? size;
|
num? size;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
List<String> tagIds;
|
List<String> tagIds;
|
||||||
|
|
||||||
@ -287,8 +287,8 @@ class RandomSearchDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
||||||
(createdBefore == null ? 0 : createdBefore!.hashCode) +
|
(createdBefore == null ? 0 : createdBefore!.hashCode) +
|
||||||
(deviceId == null ? 0 : deviceId!.hashCode) +
|
(deviceId == null ? 0 : deviceId!.hashCode) +
|
||||||
@ -297,14 +297,14 @@ class RandomSearchDto {
|
|||||||
(isMotion == null ? 0 : isMotion!.hashCode) +
|
(isMotion == null ? 0 : isMotion!.hashCode) +
|
||||||
(isNotInAlbum == null ? 0 : isNotInAlbum!.hashCode) +
|
(isNotInAlbum == null ? 0 : isNotInAlbum!.hashCode) +
|
||||||
(isOffline == null ? 0 : isOffline!.hashCode) +
|
(isOffline == null ? 0 : isOffline!.hashCode) +
|
||||||
(lensModel == null ? 0 : lensModel!.hashCode) +
|
(lensModel.hashCode) +
|
||||||
(libraryId == null ? 0 : libraryId!.hashCode) +
|
(libraryId.hashCode) +
|
||||||
(make == null ? 0 : make!.hashCode) +
|
(make == null ? 0 : make!.hashCode) +
|
||||||
(model == null ? 0 : model!.hashCode) +
|
(model.hashCode) +
|
||||||
(personIds.hashCode) +
|
(personIds.hashCode) +
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
(rating == null ? 0 : rating!.hashCode) +
|
||||||
(size == null ? 0 : size!.hashCode) +
|
(size == null ? 0 : size!.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode) +
|
(state.hashCode) +
|
||||||
(tagIds.hashCode) +
|
(tagIds.hashCode) +
|
||||||
(takenAfter == null ? 0 : takenAfter!.hashCode) +
|
(takenAfter == null ? 0 : takenAfter!.hashCode) +
|
||||||
(takenBefore == null ? 0 : takenBefore!.hashCode) +
|
(takenBefore == null ? 0 : takenBefore!.hashCode) +
|
||||||
@ -324,15 +324,19 @@ class RandomSearchDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.createdAfter != null) {
|
if (this.createdAfter != null) {
|
||||||
json[r'createdAfter'] = this.createdAfter!.toUtc().toIso8601String();
|
json[r'createdAfter'] = this.createdAfter!.toUtc().toIso8601String();
|
||||||
@ -374,25 +378,31 @@ class RandomSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'isOffline'] = null;
|
// json[r'isOffline'] = null;
|
||||||
}
|
}
|
||||||
if (this.lensModel != null) {
|
if (this.lensModel.unwrapOrNull() != null) {
|
||||||
json[r'lensModel'] = this.lensModel;
|
json[r'lensModel'] = this.lensModel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lensModel'] = null;
|
if(this.lensModel.isSome) {
|
||||||
|
json[r'lensModel'] = null;
|
||||||
}
|
}
|
||||||
if (this.libraryId != null) {
|
}
|
||||||
|
if (this.libraryId.unwrapOrNull() != null) {
|
||||||
json[r'libraryId'] = this.libraryId;
|
json[r'libraryId'] = this.libraryId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'libraryId'] = null;
|
if(this.libraryId.isSome) {
|
||||||
|
json[r'libraryId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.make != null) {
|
if (this.make != null) {
|
||||||
json[r'make'] = this.make;
|
json[r'make'] = this.make;
|
||||||
} else {
|
} else {
|
||||||
// json[r'make'] = null;
|
// json[r'make'] = null;
|
||||||
}
|
}
|
||||||
if (this.model != null) {
|
if (this.model.unwrapOrNull() != null) {
|
||||||
json[r'model'] = this.model;
|
json[r'model'] = this.model;
|
||||||
} else {
|
} else {
|
||||||
// json[r'model'] = null;
|
if(this.model.isSome) {
|
||||||
|
json[r'model'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'personIds'] = this.personIds;
|
json[r'personIds'] = this.personIds;
|
||||||
if (this.rating != null) {
|
if (this.rating != null) {
|
||||||
@ -405,10 +415,12 @@ class RandomSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'size'] = null;
|
// json[r'size'] = null;
|
||||||
}
|
}
|
||||||
if (this.state != null) {
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'tagIds'] = this.tagIds;
|
json[r'tagIds'] = this.tagIds;
|
||||||
if (this.takenAfter != null) {
|
if (this.takenAfter != null) {
|
||||||
@ -483,8 +495,8 @@ class RandomSearchDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return RandomSearchDto(
|
return RandomSearchDto(
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
||||||
createdBefore: mapDateTime(json, r'createdBefore', r''),
|
createdBefore: mapDateTime(json, r'createdBefore', r''),
|
||||||
deviceId: mapValueOfType<String>(json, r'deviceId'),
|
deviceId: mapValueOfType<String>(json, r'deviceId'),
|
||||||
@ -493,16 +505,16 @@ class RandomSearchDto {
|
|||||||
isMotion: mapValueOfType<bool>(json, r'isMotion'),
|
isMotion: mapValueOfType<bool>(json, r'isMotion'),
|
||||||
isNotInAlbum: mapValueOfType<bool>(json, r'isNotInAlbum'),
|
isNotInAlbum: mapValueOfType<bool>(json, r'isNotInAlbum'),
|
||||||
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
||||||
lensModel: mapValueOfType<String>(json, r'lensModel'),
|
lensModel: Option.from(mapValueOfType<String>(json, r'lensModel')),
|
||||||
libraryId: mapValueOfType<String>(json, r'libraryId'),
|
libraryId: Option.from(mapValueOfType<String>(json, r'libraryId')),
|
||||||
make: mapValueOfType<String>(json, r'make'),
|
make: mapValueOfType<String>(json, r'make'),
|
||||||
model: mapValueOfType<String>(json, r'model'),
|
model: Option.from(mapValueOfType<String>(json, r'model')),
|
||||||
personIds: json[r'personIds'] is Iterable
|
personIds: json[r'personIds'] is Iterable
|
||||||
? (json[r'personIds'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'personIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
rating: num.parse('${json[r'rating']}'),
|
rating: num.parse('${json[r'rating']}'),
|
||||||
size: num.parse('${json[r'size']}'),
|
size: num.parse('${json[r'size']}'),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
tagIds: json[r'tagIds'] is Iterable
|
tagIds: json[r'tagIds'] is Iterable
|
||||||
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
|
@ -13,13 +13,13 @@ part of openapi.api;
|
|||||||
class ReverseGeocodingStateResponseDto {
|
class ReverseGeocodingStateResponseDto {
|
||||||
/// Returns a new [ReverseGeocodingStateResponseDto] instance.
|
/// Returns a new [ReverseGeocodingStateResponseDto] instance.
|
||||||
ReverseGeocodingStateResponseDto({
|
ReverseGeocodingStateResponseDto({
|
||||||
required this.lastImportFileName,
|
this.lastImportFileName = const None(),
|
||||||
required this.lastUpdate,
|
this.lastUpdate = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
String? lastImportFileName;
|
Option<String> lastImportFileName;
|
||||||
|
|
||||||
String? lastUpdate;
|
Option<String> lastUpdate;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ReverseGeocodingStateResponseDto &&
|
bool operator ==(Object other) => identical(this, other) || other is ReverseGeocodingStateResponseDto &&
|
||||||
@ -29,23 +29,27 @@ class ReverseGeocodingStateResponseDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(lastImportFileName == null ? 0 : lastImportFileName!.hashCode) +
|
(lastImportFileName.hashCode) +
|
||||||
(lastUpdate == null ? 0 : lastUpdate!.hashCode);
|
(lastUpdate.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'ReverseGeocodingStateResponseDto[lastImportFileName=$lastImportFileName, lastUpdate=$lastUpdate]';
|
String toString() => 'ReverseGeocodingStateResponseDto[lastImportFileName=$lastImportFileName, lastUpdate=$lastUpdate]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.lastImportFileName != null) {
|
if (this.lastImportFileName.unwrapOrNull() != null) {
|
||||||
json[r'lastImportFileName'] = this.lastImportFileName;
|
json[r'lastImportFileName'] = this.lastImportFileName;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lastImportFileName'] = null;
|
if(this.lastImportFileName.isSome) {
|
||||||
|
json[r'lastImportFileName'] = null;
|
||||||
}
|
}
|
||||||
if (this.lastUpdate != null) {
|
}
|
||||||
|
if (this.lastUpdate.unwrapOrNull() != null) {
|
||||||
json[r'lastUpdate'] = this.lastUpdate;
|
json[r'lastUpdate'] = this.lastUpdate;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lastUpdate'] = null;
|
if(this.lastUpdate.isSome) {
|
||||||
|
json[r'lastUpdate'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -59,8 +63,8 @@ class ReverseGeocodingStateResponseDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return ReverseGeocodingStateResponseDto(
|
return ReverseGeocodingStateResponseDto(
|
||||||
lastImportFileName: mapValueOfType<String>(json, r'lastImportFileName'),
|
lastImportFileName: Option.from(mapValueOfType<String>(json, r'lastImportFileName')),
|
||||||
lastUpdate: mapValueOfType<String>(json, r'lastUpdate'),
|
lastUpdate: Option.from(mapValueOfType<String>(json, r'lastUpdate')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -16,7 +16,7 @@ class SearchAssetResponseDto {
|
|||||||
required this.count,
|
required this.count,
|
||||||
this.facets = const [],
|
this.facets = const [],
|
||||||
this.items = const [],
|
this.items = const [],
|
||||||
required this.nextPage,
|
this.nextPage = const None(),
|
||||||
required this.total,
|
required this.total,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ class SearchAssetResponseDto {
|
|||||||
|
|
||||||
List<AssetResponseDto> items;
|
List<AssetResponseDto> items;
|
||||||
|
|
||||||
String? nextPage;
|
Option<String> nextPage;
|
||||||
|
|
||||||
int total;
|
int total;
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ class SearchAssetResponseDto {
|
|||||||
(count.hashCode) +
|
(count.hashCode) +
|
||||||
(facets.hashCode) +
|
(facets.hashCode) +
|
||||||
(items.hashCode) +
|
(items.hashCode) +
|
||||||
(nextPage == null ? 0 : nextPage!.hashCode) +
|
(nextPage.hashCode) +
|
||||||
(total.hashCode);
|
(total.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -55,10 +55,12 @@ class SearchAssetResponseDto {
|
|||||||
json[r'count'] = this.count;
|
json[r'count'] = this.count;
|
||||||
json[r'facets'] = this.facets;
|
json[r'facets'] = this.facets;
|
||||||
json[r'items'] = this.items;
|
json[r'items'] = this.items;
|
||||||
if (this.nextPage != null) {
|
if (this.nextPage.unwrapOrNull() != null) {
|
||||||
json[r'nextPage'] = this.nextPage;
|
json[r'nextPage'] = this.nextPage;
|
||||||
} else {
|
} else {
|
||||||
// json[r'nextPage'] = null;
|
if(this.nextPage.isSome) {
|
||||||
|
json[r'nextPage'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'total'] = this.total;
|
json[r'total'] = this.total;
|
||||||
return json;
|
return json;
|
||||||
@ -76,7 +78,7 @@ class SearchAssetResponseDto {
|
|||||||
count: mapValueOfType<int>(json, r'count')!,
|
count: mapValueOfType<int>(json, r'count')!,
|
||||||
facets: SearchFacetResponseDto.listFromJson(json[r'facets']),
|
facets: SearchFacetResponseDto.listFromJson(json[r'facets']),
|
||||||
items: AssetResponseDto.listFromJson(json[r'items']),
|
items: AssetResponseDto.listFromJson(json[r'items']),
|
||||||
nextPage: mapValueOfType<String>(json, r'nextPage'),
|
nextPage: Option.from(mapValueOfType<String>(json, r'nextPage')),
|
||||||
total: mapValueOfType<int>(json, r'total')!,
|
total: mapValueOfType<int>(json, r'total')!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
16
mobile/openapi/lib/model/shared_link_create_dto.dart
generated
16
mobile/openapi/lib/model/shared_link_create_dto.dart
generated
@ -18,7 +18,7 @@ class SharedLinkCreateDto {
|
|||||||
this.allowUpload,
|
this.allowUpload,
|
||||||
this.assetIds = const [],
|
this.assetIds = const [],
|
||||||
this.description,
|
this.description,
|
||||||
this.expiresAt,
|
this.expiresAt = const None(),
|
||||||
this.password,
|
this.password,
|
||||||
this.showMetadata = true,
|
this.showMetadata = true,
|
||||||
required this.type,
|
required this.type,
|
||||||
@ -52,7 +52,7 @@ class SharedLinkCreateDto {
|
|||||||
///
|
///
|
||||||
String? description;
|
String? description;
|
||||||
|
|
||||||
DateTime? expiresAt;
|
Option<DateTime> expiresAt;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -86,7 +86,7 @@ class SharedLinkCreateDto {
|
|||||||
(allowUpload == null ? 0 : allowUpload!.hashCode) +
|
(allowUpload == null ? 0 : allowUpload!.hashCode) +
|
||||||
(assetIds.hashCode) +
|
(assetIds.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description == null ? 0 : description!.hashCode) +
|
||||||
(expiresAt == null ? 0 : expiresAt!.hashCode) +
|
(expiresAt.hashCode) +
|
||||||
(password == null ? 0 : password!.hashCode) +
|
(password == null ? 0 : password!.hashCode) +
|
||||||
(showMetadata.hashCode) +
|
(showMetadata.hashCode) +
|
||||||
(type.hashCode);
|
(type.hashCode);
|
||||||
@ -113,10 +113,12 @@ class SharedLinkCreateDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'description'] = null;
|
// json[r'description'] = null;
|
||||||
}
|
}
|
||||||
if (this.expiresAt != null) {
|
if (this.expiresAt.unwrapOrNull() != null) {
|
||||||
json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
|
json[r'expiresAt'] = this.expiresAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'expiresAt'] = null;
|
if(this.expiresAt.isSome) {
|
||||||
|
json[r'expiresAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.password != null) {
|
if (this.password != null) {
|
||||||
json[r'password'] = this.password;
|
json[r'password'] = this.password;
|
||||||
@ -144,7 +146,7 @@ class SharedLinkCreateDto {
|
|||||||
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: mapValueOfType<String>(json, r'description'),
|
||||||
expiresAt: mapDateTime(json, r'expiresAt', r''),
|
expiresAt: Option.from(mapDateTime(json, r'expiresAt', r'')),
|
||||||
password: mapValueOfType<String>(json, r'password'),
|
password: mapValueOfType<String>(json, r'password'),
|
||||||
showMetadata: mapValueOfType<bool>(json, r'showMetadata') ?? true,
|
showMetadata: mapValueOfType<bool>(json, r'showMetadata') ?? true,
|
||||||
type: SharedLinkType.fromJson(json[r'type'])!,
|
type: SharedLinkType.fromJson(json[r'type'])!,
|
||||||
|
16
mobile/openapi/lib/model/shared_link_edit_dto.dart
generated
16
mobile/openapi/lib/model/shared_link_edit_dto.dart
generated
@ -17,7 +17,7 @@ class SharedLinkEditDto {
|
|||||||
this.allowUpload,
|
this.allowUpload,
|
||||||
this.changeExpiryTime,
|
this.changeExpiryTime,
|
||||||
this.description,
|
this.description,
|
||||||
this.expiresAt,
|
this.expiresAt = const None(),
|
||||||
this.password,
|
this.password,
|
||||||
this.showMetadata,
|
this.showMetadata,
|
||||||
});
|
});
|
||||||
@ -55,7 +55,7 @@ class SharedLinkEditDto {
|
|||||||
///
|
///
|
||||||
String? description;
|
String? description;
|
||||||
|
|
||||||
DateTime? expiresAt;
|
Option<DateTime> expiresAt;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -90,7 +90,7 @@ class SharedLinkEditDto {
|
|||||||
(allowUpload == null ? 0 : allowUpload!.hashCode) +
|
(allowUpload == null ? 0 : allowUpload!.hashCode) +
|
||||||
(changeExpiryTime == null ? 0 : changeExpiryTime!.hashCode) +
|
(changeExpiryTime == null ? 0 : changeExpiryTime!.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description == null ? 0 : description!.hashCode) +
|
||||||
(expiresAt == null ? 0 : expiresAt!.hashCode) +
|
(expiresAt.hashCode) +
|
||||||
(password == null ? 0 : password!.hashCode) +
|
(password == null ? 0 : password!.hashCode) +
|
||||||
(showMetadata == null ? 0 : showMetadata!.hashCode);
|
(showMetadata == null ? 0 : showMetadata!.hashCode);
|
||||||
|
|
||||||
@ -119,10 +119,12 @@ class SharedLinkEditDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'description'] = null;
|
// json[r'description'] = null;
|
||||||
}
|
}
|
||||||
if (this.expiresAt != null) {
|
if (this.expiresAt.unwrapOrNull() != null) {
|
||||||
json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
|
json[r'expiresAt'] = this.expiresAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'expiresAt'] = null;
|
if(this.expiresAt.isSome) {
|
||||||
|
json[r'expiresAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.password != null) {
|
if (this.password != null) {
|
||||||
json[r'password'] = this.password;
|
json[r'password'] = this.password;
|
||||||
@ -150,7 +152,7 @@ class SharedLinkEditDto {
|
|||||||
allowUpload: mapValueOfType<bool>(json, r'allowUpload'),
|
allowUpload: mapValueOfType<bool>(json, r'allowUpload'),
|
||||||
changeExpiryTime: mapValueOfType<bool>(json, r'changeExpiryTime'),
|
changeExpiryTime: mapValueOfType<bool>(json, r'changeExpiryTime'),
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: mapValueOfType<String>(json, r'description'),
|
||||||
expiresAt: mapDateTime(json, r'expiresAt', r''),
|
expiresAt: Option.from(mapDateTime(json, r'expiresAt', r'')),
|
||||||
password: mapValueOfType<String>(json, r'password'),
|
password: mapValueOfType<String>(json, r'password'),
|
||||||
showMetadata: mapValueOfType<bool>(json, r'showMetadata'),
|
showMetadata: mapValueOfType<bool>(json, r'showMetadata'),
|
||||||
);
|
);
|
||||||
|
@ -18,13 +18,13 @@ class SharedLinkResponseDto {
|
|||||||
required this.allowUpload,
|
required this.allowUpload,
|
||||||
this.assets = const [],
|
this.assets = const [],
|
||||||
required this.createdAt,
|
required this.createdAt,
|
||||||
required this.description,
|
this.description = const None(),
|
||||||
required this.expiresAt,
|
this.expiresAt = const None(),
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.key,
|
required this.key,
|
||||||
required this.password,
|
this.password = const None(),
|
||||||
required this.showMetadata,
|
required this.showMetadata,
|
||||||
this.token,
|
this.token = const None(),
|
||||||
required this.type,
|
required this.type,
|
||||||
required this.userId,
|
required this.userId,
|
||||||
});
|
});
|
||||||
@ -45,19 +45,19 @@ class SharedLinkResponseDto {
|
|||||||
|
|
||||||
DateTime createdAt;
|
DateTime createdAt;
|
||||||
|
|
||||||
String? description;
|
Option<String> description;
|
||||||
|
|
||||||
DateTime? expiresAt;
|
Option<DateTime> expiresAt;
|
||||||
|
|
||||||
String id;
|
String id;
|
||||||
|
|
||||||
String key;
|
String key;
|
||||||
|
|
||||||
String? password;
|
Option<String> password;
|
||||||
|
|
||||||
bool showMetadata;
|
bool showMetadata;
|
||||||
|
|
||||||
String? token;
|
Option<String> token;
|
||||||
|
|
||||||
SharedLinkType type;
|
SharedLinkType type;
|
||||||
|
|
||||||
@ -88,13 +88,13 @@ class SharedLinkResponseDto {
|
|||||||
(allowUpload.hashCode) +
|
(allowUpload.hashCode) +
|
||||||
(assets.hashCode) +
|
(assets.hashCode) +
|
||||||
(createdAt.hashCode) +
|
(createdAt.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description.hashCode) +
|
||||||
(expiresAt == null ? 0 : expiresAt!.hashCode) +
|
(expiresAt.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(key.hashCode) +
|
(key.hashCode) +
|
||||||
(password == null ? 0 : password!.hashCode) +
|
(password.hashCode) +
|
||||||
(showMetadata.hashCode) +
|
(showMetadata.hashCode) +
|
||||||
(token == null ? 0 : token!.hashCode) +
|
(token.hashCode) +
|
||||||
(type.hashCode) +
|
(type.hashCode) +
|
||||||
(userId.hashCode);
|
(userId.hashCode);
|
||||||
|
|
||||||
@ -112,28 +112,36 @@ class SharedLinkResponseDto {
|
|||||||
json[r'allowUpload'] = this.allowUpload;
|
json[r'allowUpload'] = this.allowUpload;
|
||||||
json[r'assets'] = this.assets;
|
json[r'assets'] = this.assets;
|
||||||
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
||||||
if (this.description != null) {
|
if (this.description.unwrapOrNull() != null) {
|
||||||
json[r'description'] = this.description;
|
json[r'description'] = this.description;
|
||||||
} else {
|
} else {
|
||||||
// json[r'description'] = null;
|
if(this.description.isSome) {
|
||||||
|
json[r'description'] = null;
|
||||||
}
|
}
|
||||||
if (this.expiresAt != null) {
|
}
|
||||||
json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
|
if (this.expiresAt.unwrapOrNull() != null) {
|
||||||
|
json[r'expiresAt'] = this.expiresAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'expiresAt'] = null;
|
if(this.expiresAt.isSome) {
|
||||||
|
json[r'expiresAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
json[r'key'] = this.key;
|
json[r'key'] = this.key;
|
||||||
if (this.password != null) {
|
if (this.password.unwrapOrNull() != null) {
|
||||||
json[r'password'] = this.password;
|
json[r'password'] = this.password;
|
||||||
} else {
|
} else {
|
||||||
// json[r'password'] = null;
|
if(this.password.isSome) {
|
||||||
|
json[r'password'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'showMetadata'] = this.showMetadata;
|
json[r'showMetadata'] = this.showMetadata;
|
||||||
if (this.token != null) {
|
if (this.token.unwrapOrNull() != null) {
|
||||||
json[r'token'] = this.token;
|
json[r'token'] = this.token;
|
||||||
} else {
|
} else {
|
||||||
// json[r'token'] = null;
|
if(this.token.isSome) {
|
||||||
|
json[r'token'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'type'] = this.type;
|
json[r'type'] = this.type;
|
||||||
json[r'userId'] = this.userId;
|
json[r'userId'] = this.userId;
|
||||||
@ -154,13 +162,13 @@ class SharedLinkResponseDto {
|
|||||||
allowUpload: mapValueOfType<bool>(json, r'allowUpload')!,
|
allowUpload: mapValueOfType<bool>(json, r'allowUpload')!,
|
||||||
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
||||||
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: Option.from(mapValueOfType<String>(json, r'description')),
|
||||||
expiresAt: mapDateTime(json, r'expiresAt', r''),
|
expiresAt: Option.from(mapDateTime(json, r'expiresAt', r'')),
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
key: mapValueOfType<String>(json, r'key')!,
|
key: mapValueOfType<String>(json, r'key')!,
|
||||||
password: mapValueOfType<String>(json, r'password'),
|
password: Option.from(mapValueOfType<String>(json, r'password')),
|
||||||
showMetadata: mapValueOfType<bool>(json, r'showMetadata')!,
|
showMetadata: mapValueOfType<bool>(json, r'showMetadata')!,
|
||||||
token: mapValueOfType<String>(json, r'token'),
|
token: Option.from(mapValueOfType<String>(json, r'token')),
|
||||||
type: SharedLinkType.fromJson(json[r'type'])!,
|
type: SharedLinkType.fromJson(json[r'type'])!,
|
||||||
userId: mapValueOfType<String>(json, r'userId')!,
|
userId: mapValueOfType<String>(json, r'userId')!,
|
||||||
);
|
);
|
||||||
|
84
mobile/openapi/lib/model/smart_search_dto.dart
generated
84
mobile/openapi/lib/model/smart_search_dto.dart
generated
@ -13,8 +13,8 @@ part of openapi.api;
|
|||||||
class SmartSearchDto {
|
class SmartSearchDto {
|
||||||
/// Returns a new [SmartSearchDto] instance.
|
/// Returns a new [SmartSearchDto] instance.
|
||||||
SmartSearchDto({
|
SmartSearchDto({
|
||||||
this.city,
|
this.city = const None(),
|
||||||
this.country,
|
this.country = const None(),
|
||||||
this.createdAfter,
|
this.createdAfter,
|
||||||
this.createdBefore,
|
this.createdBefore,
|
||||||
this.deviceId,
|
this.deviceId,
|
||||||
@ -24,16 +24,16 @@ class SmartSearchDto {
|
|||||||
this.isNotInAlbum,
|
this.isNotInAlbum,
|
||||||
this.isOffline,
|
this.isOffline,
|
||||||
this.language,
|
this.language,
|
||||||
this.lensModel,
|
this.lensModel = const None(),
|
||||||
this.libraryId,
|
this.libraryId = const None(),
|
||||||
this.make,
|
this.make,
|
||||||
this.model,
|
this.model = const None(),
|
||||||
this.page,
|
this.page,
|
||||||
this.personIds = const [],
|
this.personIds = const [],
|
||||||
required this.query,
|
required this.query,
|
||||||
this.rating,
|
this.rating,
|
||||||
this.size,
|
this.size,
|
||||||
this.state,
|
this.state = const None(),
|
||||||
this.tagIds = const [],
|
this.tagIds = const [],
|
||||||
this.takenAfter,
|
this.takenAfter,
|
||||||
this.takenBefore,
|
this.takenBefore,
|
||||||
@ -47,9 +47,9 @@ class SmartSearchDto {
|
|||||||
this.withExif,
|
this.withExif,
|
||||||
});
|
});
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -123,9 +123,9 @@ class SmartSearchDto {
|
|||||||
///
|
///
|
||||||
String? language;
|
String? language;
|
||||||
|
|
||||||
String? lensModel;
|
Option<String> lensModel;
|
||||||
|
|
||||||
String? libraryId;
|
Option<String> libraryId;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -135,7 +135,7 @@ class SmartSearchDto {
|
|||||||
///
|
///
|
||||||
String? make;
|
String? make;
|
||||||
|
|
||||||
String? model;
|
Option<String> model;
|
||||||
|
|
||||||
/// Minimum value: 1
|
/// Minimum value: 1
|
||||||
///
|
///
|
||||||
@ -170,7 +170,7 @@ class SmartSearchDto {
|
|||||||
///
|
///
|
||||||
num? size;
|
num? size;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
List<String> tagIds;
|
List<String> tagIds;
|
||||||
|
|
||||||
@ -292,8 +292,8 @@ class SmartSearchDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
||||||
(createdBefore == null ? 0 : createdBefore!.hashCode) +
|
(createdBefore == null ? 0 : createdBefore!.hashCode) +
|
||||||
(deviceId == null ? 0 : deviceId!.hashCode) +
|
(deviceId == null ? 0 : deviceId!.hashCode) +
|
||||||
@ -303,16 +303,16 @@ class SmartSearchDto {
|
|||||||
(isNotInAlbum == null ? 0 : isNotInAlbum!.hashCode) +
|
(isNotInAlbum == null ? 0 : isNotInAlbum!.hashCode) +
|
||||||
(isOffline == null ? 0 : isOffline!.hashCode) +
|
(isOffline == null ? 0 : isOffline!.hashCode) +
|
||||||
(language == null ? 0 : language!.hashCode) +
|
(language == null ? 0 : language!.hashCode) +
|
||||||
(lensModel == null ? 0 : lensModel!.hashCode) +
|
(lensModel.hashCode) +
|
||||||
(libraryId == null ? 0 : libraryId!.hashCode) +
|
(libraryId.hashCode) +
|
||||||
(make == null ? 0 : make!.hashCode) +
|
(make == null ? 0 : make!.hashCode) +
|
||||||
(model == null ? 0 : model!.hashCode) +
|
(model.hashCode) +
|
||||||
(page == null ? 0 : page!.hashCode) +
|
(page == null ? 0 : page!.hashCode) +
|
||||||
(personIds.hashCode) +
|
(personIds.hashCode) +
|
||||||
(query.hashCode) +
|
(query.hashCode) +
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
(rating == null ? 0 : rating!.hashCode) +
|
||||||
(size == null ? 0 : size!.hashCode) +
|
(size == null ? 0 : size!.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode) +
|
(state.hashCode) +
|
||||||
(tagIds.hashCode) +
|
(tagIds.hashCode) +
|
||||||
(takenAfter == null ? 0 : takenAfter!.hashCode) +
|
(takenAfter == null ? 0 : takenAfter!.hashCode) +
|
||||||
(takenBefore == null ? 0 : takenBefore!.hashCode) +
|
(takenBefore == null ? 0 : takenBefore!.hashCode) +
|
||||||
@ -330,15 +330,19 @@ class SmartSearchDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.createdAfter != null) {
|
if (this.createdAfter != null) {
|
||||||
json[r'createdAfter'] = this.createdAfter!.toUtc().toIso8601String();
|
json[r'createdAfter'] = this.createdAfter!.toUtc().toIso8601String();
|
||||||
@ -385,25 +389,31 @@ class SmartSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'language'] = null;
|
// json[r'language'] = null;
|
||||||
}
|
}
|
||||||
if (this.lensModel != null) {
|
if (this.lensModel.unwrapOrNull() != null) {
|
||||||
json[r'lensModel'] = this.lensModel;
|
json[r'lensModel'] = this.lensModel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lensModel'] = null;
|
if(this.lensModel.isSome) {
|
||||||
|
json[r'lensModel'] = null;
|
||||||
}
|
}
|
||||||
if (this.libraryId != null) {
|
}
|
||||||
|
if (this.libraryId.unwrapOrNull() != null) {
|
||||||
json[r'libraryId'] = this.libraryId;
|
json[r'libraryId'] = this.libraryId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'libraryId'] = null;
|
if(this.libraryId.isSome) {
|
||||||
|
json[r'libraryId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.make != null) {
|
if (this.make != null) {
|
||||||
json[r'make'] = this.make;
|
json[r'make'] = this.make;
|
||||||
} else {
|
} else {
|
||||||
// json[r'make'] = null;
|
// json[r'make'] = null;
|
||||||
}
|
}
|
||||||
if (this.model != null) {
|
if (this.model.unwrapOrNull() != null) {
|
||||||
json[r'model'] = this.model;
|
json[r'model'] = this.model;
|
||||||
} else {
|
} else {
|
||||||
// json[r'model'] = null;
|
if(this.model.isSome) {
|
||||||
|
json[r'model'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.page != null) {
|
if (this.page != null) {
|
||||||
json[r'page'] = this.page;
|
json[r'page'] = this.page;
|
||||||
@ -422,10 +432,12 @@ class SmartSearchDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'size'] = null;
|
// json[r'size'] = null;
|
||||||
}
|
}
|
||||||
if (this.state != null) {
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'tagIds'] = this.tagIds;
|
json[r'tagIds'] = this.tagIds;
|
||||||
if (this.takenAfter != null) {
|
if (this.takenAfter != null) {
|
||||||
@ -490,8 +502,8 @@ class SmartSearchDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return SmartSearchDto(
|
return SmartSearchDto(
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
||||||
createdBefore: mapDateTime(json, r'createdBefore', r''),
|
createdBefore: mapDateTime(json, r'createdBefore', r''),
|
||||||
deviceId: mapValueOfType<String>(json, r'deviceId'),
|
deviceId: mapValueOfType<String>(json, r'deviceId'),
|
||||||
@ -501,10 +513,10 @@ class SmartSearchDto {
|
|||||||
isNotInAlbum: mapValueOfType<bool>(json, r'isNotInAlbum'),
|
isNotInAlbum: mapValueOfType<bool>(json, r'isNotInAlbum'),
|
||||||
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
||||||
language: mapValueOfType<String>(json, r'language'),
|
language: mapValueOfType<String>(json, r'language'),
|
||||||
lensModel: mapValueOfType<String>(json, r'lensModel'),
|
lensModel: Option.from(mapValueOfType<String>(json, r'lensModel')),
|
||||||
libraryId: mapValueOfType<String>(json, r'libraryId'),
|
libraryId: Option.from(mapValueOfType<String>(json, r'libraryId')),
|
||||||
make: mapValueOfType<String>(json, r'make'),
|
make: mapValueOfType<String>(json, r'make'),
|
||||||
model: mapValueOfType<String>(json, r'model'),
|
model: Option.from(mapValueOfType<String>(json, r'model')),
|
||||||
page: num.parse('${json[r'page']}'),
|
page: num.parse('${json[r'page']}'),
|
||||||
personIds: json[r'personIds'] is Iterable
|
personIds: json[r'personIds'] is Iterable
|
||||||
? (json[r'personIds'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'personIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
@ -512,7 +524,7 @@ class SmartSearchDto {
|
|||||||
query: mapValueOfType<String>(json, r'query')!,
|
query: mapValueOfType<String>(json, r'query')!,
|
||||||
rating: num.parse('${json[r'rating']}'),
|
rating: num.parse('${json[r'rating']}'),
|
||||||
size: num.parse('${json[r'size']}'),
|
size: num.parse('${json[r'size']}'),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
tagIds: json[r'tagIds'] is Iterable
|
tagIds: json[r'tagIds'] is Iterable
|
||||||
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
|
340
mobile/openapi/lib/model/sync_asset_exif_v1.dart
generated
340
mobile/openapi/lib/model/sync_asset_exif_v1.dart
generated
@ -14,81 +14,81 @@ class SyncAssetExifV1 {
|
|||||||
/// Returns a new [SyncAssetExifV1] instance.
|
/// Returns a new [SyncAssetExifV1] instance.
|
||||||
SyncAssetExifV1({
|
SyncAssetExifV1({
|
||||||
required this.assetId,
|
required this.assetId,
|
||||||
required this.city,
|
this.city = const None(),
|
||||||
required this.country,
|
this.country = const None(),
|
||||||
required this.dateTimeOriginal,
|
this.dateTimeOriginal = const None(),
|
||||||
required this.description,
|
this.description = const None(),
|
||||||
required this.exifImageHeight,
|
this.exifImageHeight = const None(),
|
||||||
required this.exifImageWidth,
|
this.exifImageWidth = const None(),
|
||||||
required this.exposureTime,
|
this.exposureTime = const None(),
|
||||||
required this.fNumber,
|
this.fNumber = const None(),
|
||||||
required this.fileSizeInByte,
|
this.fileSizeInByte = const None(),
|
||||||
required this.focalLength,
|
this.focalLength = const None(),
|
||||||
required this.fps,
|
this.fps = const None(),
|
||||||
required this.iso,
|
this.iso = const None(),
|
||||||
required this.latitude,
|
this.latitude = const None(),
|
||||||
required this.lensModel,
|
this.lensModel = const None(),
|
||||||
required this.longitude,
|
this.longitude = const None(),
|
||||||
required this.make,
|
this.make = const None(),
|
||||||
required this.model,
|
this.model = const None(),
|
||||||
required this.modifyDate,
|
this.modifyDate = const None(),
|
||||||
required this.orientation,
|
this.orientation = const None(),
|
||||||
required this.profileDescription,
|
this.profileDescription = const None(),
|
||||||
required this.projectionType,
|
this.projectionType = const None(),
|
||||||
required this.rating,
|
this.rating = const None(),
|
||||||
required this.state,
|
this.state = const None(),
|
||||||
required this.timeZone,
|
this.timeZone = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
String assetId;
|
String assetId;
|
||||||
|
|
||||||
String? city;
|
Option<String> city;
|
||||||
|
|
||||||
String? country;
|
Option<String> country;
|
||||||
|
|
||||||
DateTime? dateTimeOriginal;
|
Option<DateTime> dateTimeOriginal;
|
||||||
|
|
||||||
String? description;
|
Option<String> description;
|
||||||
|
|
||||||
int? exifImageHeight;
|
Option<int> exifImageHeight;
|
||||||
|
|
||||||
int? exifImageWidth;
|
Option<int> exifImageWidth;
|
||||||
|
|
||||||
String? exposureTime;
|
Option<String> exposureTime;
|
||||||
|
|
||||||
int? fNumber;
|
Option<int> fNumber;
|
||||||
|
|
||||||
int? fileSizeInByte;
|
Option<int> fileSizeInByte;
|
||||||
|
|
||||||
int? focalLength;
|
Option<int> focalLength;
|
||||||
|
|
||||||
int? fps;
|
Option<int> fps;
|
||||||
|
|
||||||
int? iso;
|
Option<int> iso;
|
||||||
|
|
||||||
int? latitude;
|
Option<int> latitude;
|
||||||
|
|
||||||
String? lensModel;
|
Option<String> lensModel;
|
||||||
|
|
||||||
int? longitude;
|
Option<int> longitude;
|
||||||
|
|
||||||
String? make;
|
Option<String> make;
|
||||||
|
|
||||||
String? model;
|
Option<String> model;
|
||||||
|
|
||||||
DateTime? modifyDate;
|
Option<DateTime> modifyDate;
|
||||||
|
|
||||||
String? orientation;
|
Option<String> orientation;
|
||||||
|
|
||||||
String? profileDescription;
|
Option<String> profileDescription;
|
||||||
|
|
||||||
String? projectionType;
|
Option<String> projectionType;
|
||||||
|
|
||||||
int? rating;
|
Option<int> rating;
|
||||||
|
|
||||||
String? state;
|
Option<String> state;
|
||||||
|
|
||||||
String? timeZone;
|
Option<String> timeZone;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is SyncAssetExifV1 &&
|
bool operator ==(Object other) => identical(this, other) || other is SyncAssetExifV1 &&
|
||||||
@ -122,30 +122,30 @@ class SyncAssetExifV1 {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(assetId.hashCode) +
|
(assetId.hashCode) +
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country.hashCode) +
|
||||||
(dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
|
(dateTimeOriginal.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description.hashCode) +
|
||||||
(exifImageHeight == null ? 0 : exifImageHeight!.hashCode) +
|
(exifImageHeight.hashCode) +
|
||||||
(exifImageWidth == null ? 0 : exifImageWidth!.hashCode) +
|
(exifImageWidth.hashCode) +
|
||||||
(exposureTime == null ? 0 : exposureTime!.hashCode) +
|
(exposureTime.hashCode) +
|
||||||
(fNumber == null ? 0 : fNumber!.hashCode) +
|
(fNumber.hashCode) +
|
||||||
(fileSizeInByte == null ? 0 : fileSizeInByte!.hashCode) +
|
(fileSizeInByte.hashCode) +
|
||||||
(focalLength == null ? 0 : focalLength!.hashCode) +
|
(focalLength.hashCode) +
|
||||||
(fps == null ? 0 : fps!.hashCode) +
|
(fps.hashCode) +
|
||||||
(iso == null ? 0 : iso!.hashCode) +
|
(iso.hashCode) +
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
(latitude.hashCode) +
|
||||||
(lensModel == null ? 0 : lensModel!.hashCode) +
|
(lensModel.hashCode) +
|
||||||
(longitude == null ? 0 : longitude!.hashCode) +
|
(longitude.hashCode) +
|
||||||
(make == null ? 0 : make!.hashCode) +
|
(make.hashCode) +
|
||||||
(model == null ? 0 : model!.hashCode) +
|
(model.hashCode) +
|
||||||
(modifyDate == null ? 0 : modifyDate!.hashCode) +
|
(modifyDate.hashCode) +
|
||||||
(orientation == null ? 0 : orientation!.hashCode) +
|
(orientation.hashCode) +
|
||||||
(profileDescription == null ? 0 : profileDescription!.hashCode) +
|
(profileDescription.hashCode) +
|
||||||
(projectionType == null ? 0 : projectionType!.hashCode) +
|
(projectionType.hashCode) +
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
(rating.hashCode) +
|
||||||
(state == null ? 0 : state!.hashCode) +
|
(state.hashCode) +
|
||||||
(timeZone == null ? 0 : timeZone!.hashCode);
|
(timeZone.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'SyncAssetExifV1[assetId=$assetId, city=$city, country=$country, dateTimeOriginal=$dateTimeOriginal, description=$description, exifImageHeight=$exifImageHeight, exifImageWidth=$exifImageWidth, exposureTime=$exposureTime, fNumber=$fNumber, fileSizeInByte=$fileSizeInByte, focalLength=$focalLength, fps=$fps, iso=$iso, latitude=$latitude, lensModel=$lensModel, longitude=$longitude, make=$make, model=$model, modifyDate=$modifyDate, orientation=$orientation, profileDescription=$profileDescription, projectionType=$projectionType, rating=$rating, state=$state, timeZone=$timeZone]';
|
String toString() => 'SyncAssetExifV1[assetId=$assetId, city=$city, country=$country, dateTimeOriginal=$dateTimeOriginal, description=$description, exifImageHeight=$exifImageHeight, exifImageWidth=$exifImageWidth, exposureTime=$exposureTime, fNumber=$fNumber, fileSizeInByte=$fileSizeInByte, focalLength=$focalLength, fps=$fps, iso=$iso, latitude=$latitude, lensModel=$lensModel, longitude=$longitude, make=$make, model=$model, modifyDate=$modifyDate, orientation=$orientation, profileDescription=$profileDescription, projectionType=$projectionType, rating=$rating, state=$state, timeZone=$timeZone]';
|
||||||
@ -153,125 +153,173 @@ class SyncAssetExifV1 {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'assetId'] = this.assetId;
|
json[r'assetId'] = this.assetId;
|
||||||
if (this.city != null) {
|
if (this.city.unwrapOrNull() != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
// json[r'city'] = null;
|
if(this.city.isSome) {
|
||||||
|
json[r'city'] = null;
|
||||||
}
|
}
|
||||||
if (this.country != null) {
|
}
|
||||||
|
if (this.country.unwrapOrNull() != null) {
|
||||||
json[r'country'] = this.country;
|
json[r'country'] = this.country;
|
||||||
} else {
|
} else {
|
||||||
// json[r'country'] = null;
|
if(this.country.isSome) {
|
||||||
|
json[r'country'] = null;
|
||||||
}
|
}
|
||||||
if (this.dateTimeOriginal != null) {
|
}
|
||||||
json[r'dateTimeOriginal'] = this.dateTimeOriginal!.toUtc().toIso8601String();
|
if (this.dateTimeOriginal.unwrapOrNull() != null) {
|
||||||
|
json[r'dateTimeOriginal'] = this.dateTimeOriginal.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'dateTimeOriginal'] = null;
|
if(this.dateTimeOriginal.isSome) {
|
||||||
|
json[r'dateTimeOriginal'] = null;
|
||||||
}
|
}
|
||||||
if (this.description != null) {
|
}
|
||||||
|
if (this.description.unwrapOrNull() != null) {
|
||||||
json[r'description'] = this.description;
|
json[r'description'] = this.description;
|
||||||
} else {
|
} else {
|
||||||
// json[r'description'] = null;
|
if(this.description.isSome) {
|
||||||
|
json[r'description'] = null;
|
||||||
}
|
}
|
||||||
if (this.exifImageHeight != null) {
|
}
|
||||||
|
if (this.exifImageHeight.unwrapOrNull() != null) {
|
||||||
json[r'exifImageHeight'] = this.exifImageHeight;
|
json[r'exifImageHeight'] = this.exifImageHeight;
|
||||||
} else {
|
} else {
|
||||||
// json[r'exifImageHeight'] = null;
|
if(this.exifImageHeight.isSome) {
|
||||||
|
json[r'exifImageHeight'] = null;
|
||||||
}
|
}
|
||||||
if (this.exifImageWidth != null) {
|
}
|
||||||
|
if (this.exifImageWidth.unwrapOrNull() != null) {
|
||||||
json[r'exifImageWidth'] = this.exifImageWidth;
|
json[r'exifImageWidth'] = this.exifImageWidth;
|
||||||
} else {
|
} else {
|
||||||
// json[r'exifImageWidth'] = null;
|
if(this.exifImageWidth.isSome) {
|
||||||
|
json[r'exifImageWidth'] = null;
|
||||||
}
|
}
|
||||||
if (this.exposureTime != null) {
|
}
|
||||||
|
if (this.exposureTime.unwrapOrNull() != null) {
|
||||||
json[r'exposureTime'] = this.exposureTime;
|
json[r'exposureTime'] = this.exposureTime;
|
||||||
} else {
|
} else {
|
||||||
// json[r'exposureTime'] = null;
|
if(this.exposureTime.isSome) {
|
||||||
|
json[r'exposureTime'] = null;
|
||||||
}
|
}
|
||||||
if (this.fNumber != null) {
|
}
|
||||||
|
if (this.fNumber.unwrapOrNull() != null) {
|
||||||
json[r'fNumber'] = this.fNumber;
|
json[r'fNumber'] = this.fNumber;
|
||||||
} else {
|
} else {
|
||||||
// json[r'fNumber'] = null;
|
if(this.fNumber.isSome) {
|
||||||
|
json[r'fNumber'] = null;
|
||||||
}
|
}
|
||||||
if (this.fileSizeInByte != null) {
|
}
|
||||||
|
if (this.fileSizeInByte.unwrapOrNull() != null) {
|
||||||
json[r'fileSizeInByte'] = this.fileSizeInByte;
|
json[r'fileSizeInByte'] = this.fileSizeInByte;
|
||||||
} else {
|
} else {
|
||||||
// json[r'fileSizeInByte'] = null;
|
if(this.fileSizeInByte.isSome) {
|
||||||
|
json[r'fileSizeInByte'] = null;
|
||||||
}
|
}
|
||||||
if (this.focalLength != null) {
|
}
|
||||||
|
if (this.focalLength.unwrapOrNull() != null) {
|
||||||
json[r'focalLength'] = this.focalLength;
|
json[r'focalLength'] = this.focalLength;
|
||||||
} else {
|
} else {
|
||||||
// json[r'focalLength'] = null;
|
if(this.focalLength.isSome) {
|
||||||
|
json[r'focalLength'] = null;
|
||||||
}
|
}
|
||||||
if (this.fps != null) {
|
}
|
||||||
|
if (this.fps.unwrapOrNull() != null) {
|
||||||
json[r'fps'] = this.fps;
|
json[r'fps'] = this.fps;
|
||||||
} else {
|
} else {
|
||||||
// json[r'fps'] = null;
|
if(this.fps.isSome) {
|
||||||
|
json[r'fps'] = null;
|
||||||
}
|
}
|
||||||
if (this.iso != null) {
|
}
|
||||||
|
if (this.iso.unwrapOrNull() != null) {
|
||||||
json[r'iso'] = this.iso;
|
json[r'iso'] = this.iso;
|
||||||
} else {
|
} else {
|
||||||
// json[r'iso'] = null;
|
if(this.iso.isSome) {
|
||||||
|
json[r'iso'] = null;
|
||||||
}
|
}
|
||||||
if (this.latitude != null) {
|
}
|
||||||
|
if (this.latitude.unwrapOrNull() != null) {
|
||||||
json[r'latitude'] = this.latitude;
|
json[r'latitude'] = this.latitude;
|
||||||
} else {
|
} else {
|
||||||
// json[r'latitude'] = null;
|
if(this.latitude.isSome) {
|
||||||
|
json[r'latitude'] = null;
|
||||||
}
|
}
|
||||||
if (this.lensModel != null) {
|
}
|
||||||
|
if (this.lensModel.unwrapOrNull() != null) {
|
||||||
json[r'lensModel'] = this.lensModel;
|
json[r'lensModel'] = this.lensModel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'lensModel'] = null;
|
if(this.lensModel.isSome) {
|
||||||
|
json[r'lensModel'] = null;
|
||||||
}
|
}
|
||||||
if (this.longitude != null) {
|
}
|
||||||
|
if (this.longitude.unwrapOrNull() != null) {
|
||||||
json[r'longitude'] = this.longitude;
|
json[r'longitude'] = this.longitude;
|
||||||
} else {
|
} else {
|
||||||
// json[r'longitude'] = null;
|
if(this.longitude.isSome) {
|
||||||
|
json[r'longitude'] = null;
|
||||||
}
|
}
|
||||||
if (this.make != null) {
|
}
|
||||||
|
if (this.make.unwrapOrNull() != null) {
|
||||||
json[r'make'] = this.make;
|
json[r'make'] = this.make;
|
||||||
} else {
|
} else {
|
||||||
// json[r'make'] = null;
|
if(this.make.isSome) {
|
||||||
|
json[r'make'] = null;
|
||||||
}
|
}
|
||||||
if (this.model != null) {
|
}
|
||||||
|
if (this.model.unwrapOrNull() != null) {
|
||||||
json[r'model'] = this.model;
|
json[r'model'] = this.model;
|
||||||
} else {
|
} else {
|
||||||
// json[r'model'] = null;
|
if(this.model.isSome) {
|
||||||
|
json[r'model'] = null;
|
||||||
}
|
}
|
||||||
if (this.modifyDate != null) {
|
}
|
||||||
json[r'modifyDate'] = this.modifyDate!.toUtc().toIso8601String();
|
if (this.modifyDate.unwrapOrNull() != null) {
|
||||||
|
json[r'modifyDate'] = this.modifyDate.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'modifyDate'] = null;
|
if(this.modifyDate.isSome) {
|
||||||
|
json[r'modifyDate'] = null;
|
||||||
}
|
}
|
||||||
if (this.orientation != null) {
|
}
|
||||||
|
if (this.orientation.unwrapOrNull() != null) {
|
||||||
json[r'orientation'] = this.orientation;
|
json[r'orientation'] = this.orientation;
|
||||||
} else {
|
} else {
|
||||||
// json[r'orientation'] = null;
|
if(this.orientation.isSome) {
|
||||||
|
json[r'orientation'] = null;
|
||||||
}
|
}
|
||||||
if (this.profileDescription != null) {
|
}
|
||||||
|
if (this.profileDescription.unwrapOrNull() != null) {
|
||||||
json[r'profileDescription'] = this.profileDescription;
|
json[r'profileDescription'] = this.profileDescription;
|
||||||
} else {
|
} else {
|
||||||
// json[r'profileDescription'] = null;
|
if(this.profileDescription.isSome) {
|
||||||
|
json[r'profileDescription'] = null;
|
||||||
}
|
}
|
||||||
if (this.projectionType != null) {
|
}
|
||||||
|
if (this.projectionType.unwrapOrNull() != null) {
|
||||||
json[r'projectionType'] = this.projectionType;
|
json[r'projectionType'] = this.projectionType;
|
||||||
} else {
|
} else {
|
||||||
// json[r'projectionType'] = null;
|
if(this.projectionType.isSome) {
|
||||||
|
json[r'projectionType'] = null;
|
||||||
}
|
}
|
||||||
if (this.rating != null) {
|
}
|
||||||
|
if (this.rating.unwrapOrNull() != null) {
|
||||||
json[r'rating'] = this.rating;
|
json[r'rating'] = this.rating;
|
||||||
} else {
|
} else {
|
||||||
// json[r'rating'] = null;
|
if(this.rating.isSome) {
|
||||||
|
json[r'rating'] = null;
|
||||||
}
|
}
|
||||||
if (this.state != null) {
|
}
|
||||||
|
if (this.state.unwrapOrNull() != null) {
|
||||||
json[r'state'] = this.state;
|
json[r'state'] = this.state;
|
||||||
} else {
|
} else {
|
||||||
// json[r'state'] = null;
|
if(this.state.isSome) {
|
||||||
|
json[r'state'] = null;
|
||||||
}
|
}
|
||||||
if (this.timeZone != null) {
|
}
|
||||||
|
if (this.timeZone.unwrapOrNull() != null) {
|
||||||
json[r'timeZone'] = this.timeZone;
|
json[r'timeZone'] = this.timeZone;
|
||||||
} else {
|
} else {
|
||||||
// json[r'timeZone'] = null;
|
if(this.timeZone.isSome) {
|
||||||
|
json[r'timeZone'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -286,30 +334,30 @@ class SyncAssetExifV1 {
|
|||||||
|
|
||||||
return SyncAssetExifV1(
|
return SyncAssetExifV1(
|
||||||
assetId: mapValueOfType<String>(json, r'assetId')!,
|
assetId: mapValueOfType<String>(json, r'assetId')!,
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: Option.from(mapValueOfType<String>(json, r'city')),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: Option.from(mapValueOfType<String>(json, r'country')),
|
||||||
dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''),
|
dateTimeOriginal: Option.from(mapDateTime(json, r'dateTimeOriginal', r'')),
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
description: Option.from(mapValueOfType<String>(json, r'description')),
|
||||||
exifImageHeight: mapValueOfType<int>(json, r'exifImageHeight'),
|
exifImageHeight: Option.from(mapValueOfType<int>(json, r'exifImageHeight')),
|
||||||
exifImageWidth: mapValueOfType<int>(json, r'exifImageWidth'),
|
exifImageWidth: Option.from(mapValueOfType<int>(json, r'exifImageWidth')),
|
||||||
exposureTime: mapValueOfType<String>(json, r'exposureTime'),
|
exposureTime: Option.from(mapValueOfType<String>(json, r'exposureTime')),
|
||||||
fNumber: mapValueOfType<int>(json, r'fNumber'),
|
fNumber: Option.from(mapValueOfType<int>(json, r'fNumber')),
|
||||||
fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'),
|
fileSizeInByte: Option.from(mapValueOfType<int>(json, r'fileSizeInByte')),
|
||||||
focalLength: mapValueOfType<int>(json, r'focalLength'),
|
focalLength: Option.from(mapValueOfType<int>(json, r'focalLength')),
|
||||||
fps: mapValueOfType<int>(json, r'fps'),
|
fps: Option.from(mapValueOfType<int>(json, r'fps')),
|
||||||
iso: mapValueOfType<int>(json, r'iso'),
|
iso: Option.from(mapValueOfType<int>(json, r'iso')),
|
||||||
latitude: mapValueOfType<int>(json, r'latitude'),
|
latitude: Option.from(mapValueOfType<int>(json, r'latitude')),
|
||||||
lensModel: mapValueOfType<String>(json, r'lensModel'),
|
lensModel: Option.from(mapValueOfType<String>(json, r'lensModel')),
|
||||||
longitude: mapValueOfType<int>(json, r'longitude'),
|
longitude: Option.from(mapValueOfType<int>(json, r'longitude')),
|
||||||
make: mapValueOfType<String>(json, r'make'),
|
make: Option.from(mapValueOfType<String>(json, r'make')),
|
||||||
model: mapValueOfType<String>(json, r'model'),
|
model: Option.from(mapValueOfType<String>(json, r'model')),
|
||||||
modifyDate: mapDateTime(json, r'modifyDate', r''),
|
modifyDate: Option.from(mapDateTime(json, r'modifyDate', r'')),
|
||||||
orientation: mapValueOfType<String>(json, r'orientation'),
|
orientation: Option.from(mapValueOfType<String>(json, r'orientation')),
|
||||||
profileDescription: mapValueOfType<String>(json, r'profileDescription'),
|
profileDescription: Option.from(mapValueOfType<String>(json, r'profileDescription')),
|
||||||
projectionType: mapValueOfType<String>(json, r'projectionType'),
|
projectionType: Option.from(mapValueOfType<String>(json, r'projectionType')),
|
||||||
rating: mapValueOfType<int>(json, r'rating'),
|
rating: Option.from(mapValueOfType<int>(json, r'rating')),
|
||||||
state: mapValueOfType<String>(json, r'state'),
|
state: Option.from(mapValueOfType<String>(json, r'state')),
|
||||||
timeZone: mapValueOfType<String>(json, r'timeZone'),
|
timeZone: Option.from(mapValueOfType<String>(json, r'timeZone')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
80
mobile/openapi/lib/model/sync_asset_v1.dart
generated
80
mobile/openapi/lib/model/sync_asset_v1.dart
generated
@ -14,35 +14,35 @@ class SyncAssetV1 {
|
|||||||
/// Returns a new [SyncAssetV1] instance.
|
/// Returns a new [SyncAssetV1] instance.
|
||||||
SyncAssetV1({
|
SyncAssetV1({
|
||||||
required this.checksum,
|
required this.checksum,
|
||||||
required this.deletedAt,
|
this.deletedAt = const None(),
|
||||||
required this.fileCreatedAt,
|
this.fileCreatedAt = const None(),
|
||||||
required this.fileModifiedAt,
|
this.fileModifiedAt = const None(),
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.isFavorite,
|
required this.isFavorite,
|
||||||
required this.localDateTime,
|
this.localDateTime = const None(),
|
||||||
required this.ownerId,
|
required this.ownerId,
|
||||||
required this.thumbhash,
|
this.thumbhash = const None(),
|
||||||
required this.type,
|
required this.type,
|
||||||
required this.visibility,
|
required this.visibility,
|
||||||
});
|
});
|
||||||
|
|
||||||
String checksum;
|
String checksum;
|
||||||
|
|
||||||
DateTime? deletedAt;
|
Option<DateTime> deletedAt;
|
||||||
|
|
||||||
DateTime? fileCreatedAt;
|
Option<DateTime> fileCreatedAt;
|
||||||
|
|
||||||
DateTime? fileModifiedAt;
|
Option<DateTime> fileModifiedAt;
|
||||||
|
|
||||||
String id;
|
String id;
|
||||||
|
|
||||||
bool isFavorite;
|
bool isFavorite;
|
||||||
|
|
||||||
DateTime? localDateTime;
|
Option<DateTime> localDateTime;
|
||||||
|
|
||||||
String ownerId;
|
String ownerId;
|
||||||
|
|
||||||
String? thumbhash;
|
Option<String> thumbhash;
|
||||||
|
|
||||||
SyncAssetV1TypeEnum type;
|
SyncAssetV1TypeEnum type;
|
||||||
|
|
||||||
@ -66,14 +66,14 @@ class SyncAssetV1 {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(checksum.hashCode) +
|
(checksum.hashCode) +
|
||||||
(deletedAt == null ? 0 : deletedAt!.hashCode) +
|
(deletedAt.hashCode) +
|
||||||
(fileCreatedAt == null ? 0 : fileCreatedAt!.hashCode) +
|
(fileCreatedAt.hashCode) +
|
||||||
(fileModifiedAt == null ? 0 : fileModifiedAt!.hashCode) +
|
(fileModifiedAt.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(isFavorite.hashCode) +
|
(isFavorite.hashCode) +
|
||||||
(localDateTime == null ? 0 : localDateTime!.hashCode) +
|
(localDateTime.hashCode) +
|
||||||
(ownerId.hashCode) +
|
(ownerId.hashCode) +
|
||||||
(thumbhash == null ? 0 : thumbhash!.hashCode) +
|
(thumbhash.hashCode) +
|
||||||
(type.hashCode) +
|
(type.hashCode) +
|
||||||
(visibility.hashCode);
|
(visibility.hashCode);
|
||||||
|
|
||||||
@ -83,33 +83,43 @@ class SyncAssetV1 {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'checksum'] = this.checksum;
|
json[r'checksum'] = this.checksum;
|
||||||
if (this.deletedAt != null) {
|
if (this.deletedAt.unwrapOrNull() != null) {
|
||||||
json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String();
|
json[r'deletedAt'] = this.deletedAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'deletedAt'] = null;
|
if(this.deletedAt.isSome) {
|
||||||
|
json[r'deletedAt'] = null;
|
||||||
}
|
}
|
||||||
if (this.fileCreatedAt != null) {
|
|
||||||
json[r'fileCreatedAt'] = this.fileCreatedAt!.toUtc().toIso8601String();
|
|
||||||
} else {
|
|
||||||
// json[r'fileCreatedAt'] = null;
|
|
||||||
}
|
}
|
||||||
if (this.fileModifiedAt != null) {
|
if (this.fileCreatedAt.unwrapOrNull() != null) {
|
||||||
json[r'fileModifiedAt'] = this.fileModifiedAt!.toUtc().toIso8601String();
|
json[r'fileCreatedAt'] = this.fileCreatedAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'fileModifiedAt'] = null;
|
if(this.fileCreatedAt.isSome) {
|
||||||
|
json[r'fileCreatedAt'] = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.fileModifiedAt.unwrapOrNull() != null) {
|
||||||
|
json[r'fileModifiedAt'] = this.fileModifiedAt.unwrap().toUtc().toIso8601String();
|
||||||
|
} else {
|
||||||
|
if(this.fileModifiedAt.isSome) {
|
||||||
|
json[r'fileModifiedAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
json[r'isFavorite'] = this.isFavorite;
|
json[r'isFavorite'] = this.isFavorite;
|
||||||
if (this.localDateTime != null) {
|
if (this.localDateTime.unwrapOrNull() != null) {
|
||||||
json[r'localDateTime'] = this.localDateTime!.toUtc().toIso8601String();
|
json[r'localDateTime'] = this.localDateTime.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'localDateTime'] = null;
|
if(this.localDateTime.isSome) {
|
||||||
|
json[r'localDateTime'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'ownerId'] = this.ownerId;
|
json[r'ownerId'] = this.ownerId;
|
||||||
if (this.thumbhash != null) {
|
if (this.thumbhash.unwrapOrNull() != null) {
|
||||||
json[r'thumbhash'] = this.thumbhash;
|
json[r'thumbhash'] = this.thumbhash;
|
||||||
} else {
|
} else {
|
||||||
// json[r'thumbhash'] = null;
|
if(this.thumbhash.isSome) {
|
||||||
|
json[r'thumbhash'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'type'] = this.type;
|
json[r'type'] = this.type;
|
||||||
json[r'visibility'] = this.visibility;
|
json[r'visibility'] = this.visibility;
|
||||||
@ -126,14 +136,14 @@ class SyncAssetV1 {
|
|||||||
|
|
||||||
return SyncAssetV1(
|
return SyncAssetV1(
|
||||||
checksum: mapValueOfType<String>(json, r'checksum')!,
|
checksum: mapValueOfType<String>(json, r'checksum')!,
|
||||||
deletedAt: mapDateTime(json, r'deletedAt', r''),
|
deletedAt: Option.from(mapDateTime(json, r'deletedAt', r'')),
|
||||||
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r''),
|
fileCreatedAt: Option.from(mapDateTime(json, r'fileCreatedAt', r'')),
|
||||||
fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r''),
|
fileModifiedAt: Option.from(mapDateTime(json, r'fileModifiedAt', r'')),
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
||||||
localDateTime: mapDateTime(json, r'localDateTime', r''),
|
localDateTime: Option.from(mapDateTime(json, r'localDateTime', r'')),
|
||||||
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
||||||
thumbhash: mapValueOfType<String>(json, r'thumbhash'),
|
thumbhash: Option.from(mapValueOfType<String>(json, r'thumbhash')),
|
||||||
type: SyncAssetV1TypeEnum.fromJson(json[r'type'])!,
|
type: SyncAssetV1TypeEnum.fromJson(json[r'type'])!,
|
||||||
visibility: SyncAssetV1VisibilityEnum.fromJson(json[r'visibility'])!,
|
visibility: SyncAssetV1VisibilityEnum.fromJson(json[r'visibility'])!,
|
||||||
);
|
);
|
||||||
|
16
mobile/openapi/lib/model/sync_user_v1.dart
generated
16
mobile/openapi/lib/model/sync_user_v1.dart
generated
@ -13,13 +13,13 @@ part of openapi.api;
|
|||||||
class SyncUserV1 {
|
class SyncUserV1 {
|
||||||
/// Returns a new [SyncUserV1] instance.
|
/// Returns a new [SyncUserV1] instance.
|
||||||
SyncUserV1({
|
SyncUserV1({
|
||||||
required this.deletedAt,
|
this.deletedAt = const None(),
|
||||||
required this.email,
|
required this.email,
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.name,
|
required this.name,
|
||||||
});
|
});
|
||||||
|
|
||||||
DateTime? deletedAt;
|
Option<DateTime> deletedAt;
|
||||||
|
|
||||||
String email;
|
String email;
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ class SyncUserV1 {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(deletedAt == null ? 0 : deletedAt!.hashCode) +
|
(deletedAt.hashCode) +
|
||||||
(email.hashCode) +
|
(email.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(name.hashCode);
|
(name.hashCode);
|
||||||
@ -47,10 +47,12 @@ class SyncUserV1 {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.deletedAt != null) {
|
if (this.deletedAt.unwrapOrNull() != null) {
|
||||||
json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String();
|
json[r'deletedAt'] = this.deletedAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'deletedAt'] = null;
|
if(this.deletedAt.isSome) {
|
||||||
|
json[r'deletedAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'email'] = this.email;
|
json[r'email'] = this.email;
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
@ -67,7 +69,7 @@ class SyncUserV1 {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return SyncUserV1(
|
return SyncUserV1(
|
||||||
deletedAt: mapDateTime(json, r'deletedAt', r''),
|
deletedAt: Option.from(mapDateTime(json, r'deletedAt', r'')),
|
||||||
email: mapValueOfType<String>(json, r'email')!,
|
email: mapValueOfType<String>(json, r'email')!,
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
name: mapValueOfType<String>(json, r'name')!,
|
name: mapValueOfType<String>(json, r'name')!,
|
||||||
|
14
mobile/openapi/lib/model/tag_create_dto.dart
generated
14
mobile/openapi/lib/model/tag_create_dto.dart
generated
@ -15,7 +15,7 @@ class TagCreateDto {
|
|||||||
TagCreateDto({
|
TagCreateDto({
|
||||||
this.color,
|
this.color,
|
||||||
required this.name,
|
required this.name,
|
||||||
this.parentId,
|
this.parentId = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -28,7 +28,7 @@ class TagCreateDto {
|
|||||||
|
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
String? parentId;
|
Option<String> parentId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is TagCreateDto &&
|
bool operator ==(Object other) => identical(this, other) || other is TagCreateDto &&
|
||||||
@ -41,7 +41,7 @@ class TagCreateDto {
|
|||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(color == null ? 0 : color!.hashCode) +
|
(color == null ? 0 : color!.hashCode) +
|
||||||
(name.hashCode) +
|
(name.hashCode) +
|
||||||
(parentId == null ? 0 : parentId!.hashCode);
|
(parentId.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'TagCreateDto[color=$color, name=$name, parentId=$parentId]';
|
String toString() => 'TagCreateDto[color=$color, name=$name, parentId=$parentId]';
|
||||||
@ -54,10 +54,12 @@ class TagCreateDto {
|
|||||||
// json[r'color'] = null;
|
// json[r'color'] = null;
|
||||||
}
|
}
|
||||||
json[r'name'] = this.name;
|
json[r'name'] = this.name;
|
||||||
if (this.parentId != null) {
|
if (this.parentId.unwrapOrNull() != null) {
|
||||||
json[r'parentId'] = this.parentId;
|
json[r'parentId'] = this.parentId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'parentId'] = null;
|
if(this.parentId.isSome) {
|
||||||
|
json[r'parentId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -73,7 +75,7 @@ class TagCreateDto {
|
|||||||
return TagCreateDto(
|
return TagCreateDto(
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: mapValueOfType<String>(json, r'color'),
|
||||||
name: mapValueOfType<String>(json, r'name')!,
|
name: mapValueOfType<String>(json, r'name')!,
|
||||||
parentId: mapValueOfType<String>(json, r'parentId'),
|
parentId: Option.from(mapValueOfType<String>(json, r'parentId')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
14
mobile/openapi/lib/model/tag_update_dto.dart
generated
14
mobile/openapi/lib/model/tag_update_dto.dart
generated
@ -13,10 +13,10 @@ part of openapi.api;
|
|||||||
class TagUpdateDto {
|
class TagUpdateDto {
|
||||||
/// Returns a new [TagUpdateDto] instance.
|
/// Returns a new [TagUpdateDto] instance.
|
||||||
TagUpdateDto({
|
TagUpdateDto({
|
||||||
this.color,
|
this.color = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
String? color;
|
Option<String> color;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is TagUpdateDto &&
|
bool operator ==(Object other) => identical(this, other) || other is TagUpdateDto &&
|
||||||
@ -25,17 +25,19 @@ class TagUpdateDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(color == null ? 0 : color!.hashCode);
|
(color.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'TagUpdateDto[color=$color]';
|
String toString() => 'TagUpdateDto[color=$color]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.color != null) {
|
if (this.color.unwrapOrNull() != null) {
|
||||||
json[r'color'] = this.color;
|
json[r'color'] = this.color;
|
||||||
} else {
|
} else {
|
||||||
// json[r'color'] = null;
|
if(this.color.isSome) {
|
||||||
|
json[r'color'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -49,7 +51,7 @@ class TagUpdateDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return TagUpdateDto(
|
return TagUpdateDto(
|
||||||
color: mapValueOfType<String>(json, r'color'),
|
color: Option.from(mapValueOfType<String>(json, r'color')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
14
mobile/openapi/lib/model/update_asset_dto.dart
generated
14
mobile/openapi/lib/model/update_asset_dto.dart
generated
@ -17,7 +17,7 @@ class UpdateAssetDto {
|
|||||||
this.description,
|
this.description,
|
||||||
this.isFavorite,
|
this.isFavorite,
|
||||||
this.latitude,
|
this.latitude,
|
||||||
this.livePhotoVideoId,
|
this.livePhotoVideoId = const None(),
|
||||||
this.longitude,
|
this.longitude,
|
||||||
this.rating,
|
this.rating,
|
||||||
this.visibility,
|
this.visibility,
|
||||||
@ -55,7 +55,7 @@ class UpdateAssetDto {
|
|||||||
///
|
///
|
||||||
num? latitude;
|
num? latitude;
|
||||||
|
|
||||||
String? livePhotoVideoId;
|
Option<String> livePhotoVideoId;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -101,7 +101,7 @@ class UpdateAssetDto {
|
|||||||
(description == null ? 0 : description!.hashCode) +
|
(description == null ? 0 : description!.hashCode) +
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
(latitude == null ? 0 : latitude!.hashCode) +
|
||||||
(livePhotoVideoId == null ? 0 : livePhotoVideoId!.hashCode) +
|
(livePhotoVideoId.hashCode) +
|
||||||
(longitude == null ? 0 : longitude!.hashCode) +
|
(longitude == null ? 0 : longitude!.hashCode) +
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
(rating == null ? 0 : rating!.hashCode) +
|
||||||
(visibility == null ? 0 : visibility!.hashCode);
|
(visibility == null ? 0 : visibility!.hashCode);
|
||||||
@ -131,10 +131,12 @@ class UpdateAssetDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'latitude'] = null;
|
// json[r'latitude'] = null;
|
||||||
}
|
}
|
||||||
if (this.livePhotoVideoId != null) {
|
if (this.livePhotoVideoId.unwrapOrNull() != null) {
|
||||||
json[r'livePhotoVideoId'] = this.livePhotoVideoId;
|
json[r'livePhotoVideoId'] = this.livePhotoVideoId;
|
||||||
} else {
|
} else {
|
||||||
// json[r'livePhotoVideoId'] = null;
|
if(this.livePhotoVideoId.isSome) {
|
||||||
|
json[r'livePhotoVideoId'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.longitude != null) {
|
if (this.longitude != null) {
|
||||||
json[r'longitude'] = this.longitude;
|
json[r'longitude'] = this.longitude;
|
||||||
@ -167,7 +169,7 @@ class UpdateAssetDto {
|
|||||||
description: mapValueOfType<String>(json, r'description'),
|
description: mapValueOfType<String>(json, r'description'),
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
||||||
latitude: num.parse('${json[r'latitude']}'),
|
latitude: num.parse('${json[r'latitude']}'),
|
||||||
livePhotoVideoId: mapValueOfType<String>(json, r'livePhotoVideoId'),
|
livePhotoVideoId: Option.from(mapValueOfType<String>(json, r'livePhotoVideoId')),
|
||||||
longitude: num.parse('${json[r'longitude']}'),
|
longitude: num.parse('${json[r'longitude']}'),
|
||||||
rating: num.parse('${json[r'rating']}'),
|
rating: num.parse('${json[r'rating']}'),
|
||||||
visibility: AssetVisibility.fromJson(json[r'visibility']),
|
visibility: AssetVisibility.fromJson(json[r'visibility']),
|
||||||
|
14
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
14
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
@ -14,7 +14,7 @@ class UsageByUserDto {
|
|||||||
/// Returns a new [UsageByUserDto] instance.
|
/// Returns a new [UsageByUserDto] instance.
|
||||||
UsageByUserDto({
|
UsageByUserDto({
|
||||||
required this.photos,
|
required this.photos,
|
||||||
required this.quotaSizeInBytes,
|
this.quotaSizeInBytes = const None(),
|
||||||
required this.usage,
|
required this.usage,
|
||||||
required this.usagePhotos,
|
required this.usagePhotos,
|
||||||
required this.usageVideos,
|
required this.usageVideos,
|
||||||
@ -25,7 +25,7 @@ class UsageByUserDto {
|
|||||||
|
|
||||||
int photos;
|
int photos;
|
||||||
|
|
||||||
int? quotaSizeInBytes;
|
Option<int> quotaSizeInBytes;
|
||||||
|
|
||||||
int usage;
|
int usage;
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ class UsageByUserDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(photos.hashCode) +
|
(photos.hashCode) +
|
||||||
(quotaSizeInBytes == null ? 0 : quotaSizeInBytes!.hashCode) +
|
(quotaSizeInBytes.hashCode) +
|
||||||
(usage.hashCode) +
|
(usage.hashCode) +
|
||||||
(usagePhotos.hashCode) +
|
(usagePhotos.hashCode) +
|
||||||
(usageVideos.hashCode) +
|
(usageVideos.hashCode) +
|
||||||
@ -68,10 +68,12 @@ class UsageByUserDto {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'photos'] = this.photos;
|
json[r'photos'] = this.photos;
|
||||||
if (this.quotaSizeInBytes != null) {
|
if (this.quotaSizeInBytes.unwrapOrNull() != null) {
|
||||||
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
||||||
} else {
|
} else {
|
||||||
// json[r'quotaSizeInBytes'] = null;
|
if(this.quotaSizeInBytes.isSome) {
|
||||||
|
json[r'quotaSizeInBytes'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'usage'] = this.usage;
|
json[r'usage'] = this.usage;
|
||||||
json[r'usagePhotos'] = this.usagePhotos;
|
json[r'usagePhotos'] = this.usagePhotos;
|
||||||
@ -92,7 +94,7 @@ class UsageByUserDto {
|
|||||||
|
|
||||||
return UsageByUserDto(
|
return UsageByUserDto(
|
||||||
photos: mapValueOfType<int>(json, r'photos')!,
|
photos: mapValueOfType<int>(json, r'photos')!,
|
||||||
quotaSizeInBytes: mapValueOfType<int>(json, r'quotaSizeInBytes'),
|
quotaSizeInBytes: Option.from(mapValueOfType<int>(json, r'quotaSizeInBytes')),
|
||||||
usage: mapValueOfType<int>(json, r'usage')!,
|
usage: mapValueOfType<int>(json, r'usage')!,
|
||||||
usagePhotos: mapValueOfType<int>(json, r'usagePhotos')!,
|
usagePhotos: mapValueOfType<int>(json, r'usagePhotos')!,
|
||||||
usageVideos: mapValueOfType<int>(json, r'usageVideos')!,
|
usageVideos: mapValueOfType<int>(json, r'usageVideos')!,
|
||||||
|
42
mobile/openapi/lib/model/user_admin_create_dto.dart
generated
42
mobile/openapi/lib/model/user_admin_create_dto.dart
generated
@ -13,17 +13,17 @@ part of openapi.api;
|
|||||||
class UserAdminCreateDto {
|
class UserAdminCreateDto {
|
||||||
/// Returns a new [UserAdminCreateDto] instance.
|
/// Returns a new [UserAdminCreateDto] instance.
|
||||||
UserAdminCreateDto({
|
UserAdminCreateDto({
|
||||||
this.avatarColor,
|
this.avatarColor = const None(),
|
||||||
required this.email,
|
required this.email,
|
||||||
required this.name,
|
required this.name,
|
||||||
this.notify,
|
this.notify,
|
||||||
required this.password,
|
required this.password,
|
||||||
this.quotaSizeInBytes,
|
this.quotaSizeInBytes = const None(),
|
||||||
this.shouldChangePassword,
|
this.shouldChangePassword,
|
||||||
this.storageLabel,
|
this.storageLabel = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
UserAvatarColor? avatarColor;
|
Option<UserAvatarColor> avatarColor;
|
||||||
|
|
||||||
String email;
|
String email;
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ class UserAdminCreateDto {
|
|||||||
String password;
|
String password;
|
||||||
|
|
||||||
/// Minimum value: 0
|
/// Minimum value: 0
|
||||||
int? quotaSizeInBytes;
|
Option<int> quotaSizeInBytes;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -50,7 +50,7 @@ class UserAdminCreateDto {
|
|||||||
///
|
///
|
||||||
bool? shouldChangePassword;
|
bool? shouldChangePassword;
|
||||||
|
|
||||||
String? storageLabel;
|
Option<String> storageLabel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is UserAdminCreateDto &&
|
bool operator ==(Object other) => identical(this, other) || other is UserAdminCreateDto &&
|
||||||
@ -66,24 +66,26 @@ class UserAdminCreateDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(avatarColor == null ? 0 : avatarColor!.hashCode) +
|
(avatarColor.hashCode) +
|
||||||
(email.hashCode) +
|
(email.hashCode) +
|
||||||
(name.hashCode) +
|
(name.hashCode) +
|
||||||
(notify == null ? 0 : notify!.hashCode) +
|
(notify == null ? 0 : notify!.hashCode) +
|
||||||
(password.hashCode) +
|
(password.hashCode) +
|
||||||
(quotaSizeInBytes == null ? 0 : quotaSizeInBytes!.hashCode) +
|
(quotaSizeInBytes.hashCode) +
|
||||||
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode) +
|
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode) +
|
||||||
(storageLabel == null ? 0 : storageLabel!.hashCode);
|
(storageLabel.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'UserAdminCreateDto[avatarColor=$avatarColor, email=$email, name=$name, notify=$notify, password=$password, quotaSizeInBytes=$quotaSizeInBytes, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel]';
|
String toString() => 'UserAdminCreateDto[avatarColor=$avatarColor, email=$email, name=$name, notify=$notify, password=$password, quotaSizeInBytes=$quotaSizeInBytes, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.avatarColor != null) {
|
if (this.avatarColor.unwrapOrNull() != null) {
|
||||||
json[r'avatarColor'] = this.avatarColor;
|
json[r'avatarColor'] = this.avatarColor;
|
||||||
} else {
|
} else {
|
||||||
// json[r'avatarColor'] = null;
|
if(this.avatarColor.isSome) {
|
||||||
|
json[r'avatarColor'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'email'] = this.email;
|
json[r'email'] = this.email;
|
||||||
json[r'name'] = this.name;
|
json[r'name'] = this.name;
|
||||||
@ -93,20 +95,24 @@ class UserAdminCreateDto {
|
|||||||
// json[r'notify'] = null;
|
// json[r'notify'] = null;
|
||||||
}
|
}
|
||||||
json[r'password'] = this.password;
|
json[r'password'] = this.password;
|
||||||
if (this.quotaSizeInBytes != null) {
|
if (this.quotaSizeInBytes.unwrapOrNull() != null) {
|
||||||
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
||||||
} else {
|
} else {
|
||||||
// json[r'quotaSizeInBytes'] = null;
|
if(this.quotaSizeInBytes.isSome) {
|
||||||
|
json[r'quotaSizeInBytes'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.shouldChangePassword != null) {
|
if (this.shouldChangePassword != null) {
|
||||||
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
||||||
} else {
|
} else {
|
||||||
// json[r'shouldChangePassword'] = null;
|
// json[r'shouldChangePassword'] = null;
|
||||||
}
|
}
|
||||||
if (this.storageLabel != null) {
|
if (this.storageLabel.unwrapOrNull() != null) {
|
||||||
json[r'storageLabel'] = this.storageLabel;
|
json[r'storageLabel'] = this.storageLabel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'storageLabel'] = null;
|
if(this.storageLabel.isSome) {
|
||||||
|
json[r'storageLabel'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -120,14 +126,14 @@ class UserAdminCreateDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return UserAdminCreateDto(
|
return UserAdminCreateDto(
|
||||||
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor']),
|
avatarColor: Option.from(UserAvatarColor.fromJson(json[r'avatarColor'])),
|
||||||
email: mapValueOfType<String>(json, r'email')!,
|
email: mapValueOfType<String>(json, r'email')!,
|
||||||
name: mapValueOfType<String>(json, r'name')!,
|
name: mapValueOfType<String>(json, r'name')!,
|
||||||
notify: mapValueOfType<bool>(json, r'notify'),
|
notify: mapValueOfType<bool>(json, r'notify'),
|
||||||
password: mapValueOfType<String>(json, r'password')!,
|
password: mapValueOfType<String>(json, r'password')!,
|
||||||
quotaSizeInBytes: mapValueOfType<int>(json, r'quotaSizeInBytes'),
|
quotaSizeInBytes: Option.from(mapValueOfType<int>(json, r'quotaSizeInBytes')),
|
||||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
||||||
storageLabel: mapValueOfType<String>(json, r'storageLabel'),
|
storageLabel: Option.from(mapValueOfType<String>(json, r'storageLabel')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -15,20 +15,20 @@ class UserAdminResponseDto {
|
|||||||
UserAdminResponseDto({
|
UserAdminResponseDto({
|
||||||
required this.avatarColor,
|
required this.avatarColor,
|
||||||
required this.createdAt,
|
required this.createdAt,
|
||||||
required this.deletedAt,
|
this.deletedAt = const None(),
|
||||||
required this.email,
|
required this.email,
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.isAdmin,
|
required this.isAdmin,
|
||||||
required this.license,
|
this.license = const None(),
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.oauthId,
|
required this.oauthId,
|
||||||
required this.profileChangedAt,
|
required this.profileChangedAt,
|
||||||
required this.profileImagePath,
|
required this.profileImagePath,
|
||||||
required this.quotaSizeInBytes,
|
this.quotaSizeInBytes = const None(),
|
||||||
required this.quotaUsageInBytes,
|
this.quotaUsageInBytes = const None(),
|
||||||
required this.shouldChangePassword,
|
required this.shouldChangePassword,
|
||||||
required this.status,
|
required this.status,
|
||||||
required this.storageLabel,
|
this.storageLabel = const None(),
|
||||||
required this.updatedAt,
|
required this.updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ class UserAdminResponseDto {
|
|||||||
|
|
||||||
DateTime createdAt;
|
DateTime createdAt;
|
||||||
|
|
||||||
DateTime? deletedAt;
|
Option<DateTime> deletedAt;
|
||||||
|
|
||||||
String email;
|
String email;
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ class UserAdminResponseDto {
|
|||||||
|
|
||||||
bool isAdmin;
|
bool isAdmin;
|
||||||
|
|
||||||
UserLicense? license;
|
Option<UserLicense> license;
|
||||||
|
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
@ -54,15 +54,15 @@ class UserAdminResponseDto {
|
|||||||
|
|
||||||
String profileImagePath;
|
String profileImagePath;
|
||||||
|
|
||||||
int? quotaSizeInBytes;
|
Option<int> quotaSizeInBytes;
|
||||||
|
|
||||||
int? quotaUsageInBytes;
|
Option<int> quotaUsageInBytes;
|
||||||
|
|
||||||
bool shouldChangePassword;
|
bool shouldChangePassword;
|
||||||
|
|
||||||
UserStatus status;
|
UserStatus status;
|
||||||
|
|
||||||
String? storageLabel;
|
Option<String> storageLabel;
|
||||||
|
|
||||||
DateTime updatedAt;
|
DateTime updatedAt;
|
||||||
|
|
||||||
@ -91,20 +91,20 @@ class UserAdminResponseDto {
|
|||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(avatarColor.hashCode) +
|
(avatarColor.hashCode) +
|
||||||
(createdAt.hashCode) +
|
(createdAt.hashCode) +
|
||||||
(deletedAt == null ? 0 : deletedAt!.hashCode) +
|
(deletedAt.hashCode) +
|
||||||
(email.hashCode) +
|
(email.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(isAdmin.hashCode) +
|
(isAdmin.hashCode) +
|
||||||
(license == null ? 0 : license!.hashCode) +
|
(license.hashCode) +
|
||||||
(name.hashCode) +
|
(name.hashCode) +
|
||||||
(oauthId.hashCode) +
|
(oauthId.hashCode) +
|
||||||
(profileChangedAt.hashCode) +
|
(profileChangedAt.hashCode) +
|
||||||
(profileImagePath.hashCode) +
|
(profileImagePath.hashCode) +
|
||||||
(quotaSizeInBytes == null ? 0 : quotaSizeInBytes!.hashCode) +
|
(quotaSizeInBytes.hashCode) +
|
||||||
(quotaUsageInBytes == null ? 0 : quotaUsageInBytes!.hashCode) +
|
(quotaUsageInBytes.hashCode) +
|
||||||
(shouldChangePassword.hashCode) +
|
(shouldChangePassword.hashCode) +
|
||||||
(status.hashCode) +
|
(status.hashCode) +
|
||||||
(storageLabel == null ? 0 : storageLabel!.hashCode) +
|
(storageLabel.hashCode) +
|
||||||
(updatedAt.hashCode);
|
(updatedAt.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -114,39 +114,49 @@ class UserAdminResponseDto {
|
|||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'avatarColor'] = this.avatarColor;
|
json[r'avatarColor'] = this.avatarColor;
|
||||||
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
||||||
if (this.deletedAt != null) {
|
if (this.deletedAt.unwrapOrNull() != null) {
|
||||||
json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String();
|
json[r'deletedAt'] = this.deletedAt.unwrap().toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
// json[r'deletedAt'] = null;
|
if(this.deletedAt.isSome) {
|
||||||
|
json[r'deletedAt'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'email'] = this.email;
|
json[r'email'] = this.email;
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
json[r'isAdmin'] = this.isAdmin;
|
json[r'isAdmin'] = this.isAdmin;
|
||||||
if (this.license != null) {
|
if (this.license.unwrapOrNull() != null) {
|
||||||
json[r'license'] = this.license;
|
json[r'license'] = this.license;
|
||||||
} else {
|
} else {
|
||||||
// json[r'license'] = null;
|
if(this.license.isSome) {
|
||||||
|
json[r'license'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'name'] = this.name;
|
json[r'name'] = this.name;
|
||||||
json[r'oauthId'] = this.oauthId;
|
json[r'oauthId'] = this.oauthId;
|
||||||
json[r'profileChangedAt'] = this.profileChangedAt.toUtc().toIso8601String();
|
json[r'profileChangedAt'] = this.profileChangedAt.toUtc().toIso8601String();
|
||||||
json[r'profileImagePath'] = this.profileImagePath;
|
json[r'profileImagePath'] = this.profileImagePath;
|
||||||
if (this.quotaSizeInBytes != null) {
|
if (this.quotaSizeInBytes.unwrapOrNull() != null) {
|
||||||
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
||||||
} else {
|
} else {
|
||||||
// json[r'quotaSizeInBytes'] = null;
|
if(this.quotaSizeInBytes.isSome) {
|
||||||
|
json[r'quotaSizeInBytes'] = null;
|
||||||
}
|
}
|
||||||
if (this.quotaUsageInBytes != null) {
|
}
|
||||||
|
if (this.quotaUsageInBytes.unwrapOrNull() != null) {
|
||||||
json[r'quotaUsageInBytes'] = this.quotaUsageInBytes;
|
json[r'quotaUsageInBytes'] = this.quotaUsageInBytes;
|
||||||
} else {
|
} else {
|
||||||
// json[r'quotaUsageInBytes'] = null;
|
if(this.quotaUsageInBytes.isSome) {
|
||||||
|
json[r'quotaUsageInBytes'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
||||||
json[r'status'] = this.status;
|
json[r'status'] = this.status;
|
||||||
if (this.storageLabel != null) {
|
if (this.storageLabel.unwrapOrNull() != null) {
|
||||||
json[r'storageLabel'] = this.storageLabel;
|
json[r'storageLabel'] = this.storageLabel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'storageLabel'] = null;
|
if(this.storageLabel.isSome) {
|
||||||
|
json[r'storageLabel'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
||||||
return json;
|
return json;
|
||||||
@ -163,20 +173,20 @@ class UserAdminResponseDto {
|
|||||||
return UserAdminResponseDto(
|
return UserAdminResponseDto(
|
||||||
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor'])!,
|
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor'])!,
|
||||||
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
||||||
deletedAt: mapDateTime(json, r'deletedAt', r''),
|
deletedAt: Option.from(mapDateTime(json, r'deletedAt', r'')),
|
||||||
email: mapValueOfType<String>(json, r'email')!,
|
email: mapValueOfType<String>(json, r'email')!,
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
isAdmin: mapValueOfType<bool>(json, r'isAdmin')!,
|
isAdmin: mapValueOfType<bool>(json, r'isAdmin')!,
|
||||||
license: UserLicense.fromJson(json[r'license']),
|
license: Option.from(UserLicense.fromJson(json[r'license'])),
|
||||||
name: mapValueOfType<String>(json, r'name')!,
|
name: mapValueOfType<String>(json, r'name')!,
|
||||||
oauthId: mapValueOfType<String>(json, r'oauthId')!,
|
oauthId: mapValueOfType<String>(json, r'oauthId')!,
|
||||||
profileChangedAt: mapDateTime(json, r'profileChangedAt', r'')!,
|
profileChangedAt: mapDateTime(json, r'profileChangedAt', r'')!,
|
||||||
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
|
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
|
||||||
quotaSizeInBytes: mapValueOfType<int>(json, r'quotaSizeInBytes'),
|
quotaSizeInBytes: Option.from(mapValueOfType<int>(json, r'quotaSizeInBytes')),
|
||||||
quotaUsageInBytes: mapValueOfType<int>(json, r'quotaUsageInBytes'),
|
quotaUsageInBytes: Option.from(mapValueOfType<int>(json, r'quotaUsageInBytes')),
|
||||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
|
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
|
||||||
status: UserStatus.fromJson(json[r'status'])!,
|
status: UserStatus.fromJson(json[r'status'])!,
|
||||||
storageLabel: mapValueOfType<String>(json, r'storageLabel'),
|
storageLabel: Option.from(mapValueOfType<String>(json, r'storageLabel')),
|
||||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
56
mobile/openapi/lib/model/user_admin_update_dto.dart
generated
56
mobile/openapi/lib/model/user_admin_update_dto.dart
generated
@ -13,17 +13,17 @@ part of openapi.api;
|
|||||||
class UserAdminUpdateDto {
|
class UserAdminUpdateDto {
|
||||||
/// Returns a new [UserAdminUpdateDto] instance.
|
/// Returns a new [UserAdminUpdateDto] instance.
|
||||||
UserAdminUpdateDto({
|
UserAdminUpdateDto({
|
||||||
this.avatarColor,
|
this.avatarColor = const None(),
|
||||||
this.email,
|
this.email,
|
||||||
this.name,
|
this.name,
|
||||||
this.password,
|
this.password,
|
||||||
this.pinCode,
|
this.pinCode = const None(),
|
||||||
this.quotaSizeInBytes,
|
this.quotaSizeInBytes = const None(),
|
||||||
this.shouldChangePassword,
|
this.shouldChangePassword,
|
||||||
this.storageLabel,
|
this.storageLabel = const None(),
|
||||||
});
|
});
|
||||||
|
|
||||||
UserAvatarColor? avatarColor;
|
Option<UserAvatarColor> avatarColor;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -49,10 +49,10 @@ class UserAdminUpdateDto {
|
|||||||
///
|
///
|
||||||
String? password;
|
String? password;
|
||||||
|
|
||||||
String? pinCode;
|
Option<String> pinCode;
|
||||||
|
|
||||||
/// Minimum value: 0
|
/// Minimum value: 0
|
||||||
int? quotaSizeInBytes;
|
Option<int> quotaSizeInBytes;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -62,7 +62,7 @@ class UserAdminUpdateDto {
|
|||||||
///
|
///
|
||||||
bool? shouldChangePassword;
|
bool? shouldChangePassword;
|
||||||
|
|
||||||
String? storageLabel;
|
Option<String> storageLabel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is UserAdminUpdateDto &&
|
bool operator ==(Object other) => identical(this, other) || other is UserAdminUpdateDto &&
|
||||||
@ -78,24 +78,26 @@ class UserAdminUpdateDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(avatarColor == null ? 0 : avatarColor!.hashCode) +
|
(avatarColor.hashCode) +
|
||||||
(email == null ? 0 : email!.hashCode) +
|
(email == null ? 0 : email!.hashCode) +
|
||||||
(name == null ? 0 : name!.hashCode) +
|
(name == null ? 0 : name!.hashCode) +
|
||||||
(password == null ? 0 : password!.hashCode) +
|
(password == null ? 0 : password!.hashCode) +
|
||||||
(pinCode == null ? 0 : pinCode!.hashCode) +
|
(pinCode.hashCode) +
|
||||||
(quotaSizeInBytes == null ? 0 : quotaSizeInBytes!.hashCode) +
|
(quotaSizeInBytes.hashCode) +
|
||||||
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode) +
|
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode) +
|
||||||
(storageLabel == null ? 0 : storageLabel!.hashCode);
|
(storageLabel.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'UserAdminUpdateDto[avatarColor=$avatarColor, email=$email, name=$name, password=$password, pinCode=$pinCode, quotaSizeInBytes=$quotaSizeInBytes, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel]';
|
String toString() => 'UserAdminUpdateDto[avatarColor=$avatarColor, email=$email, name=$name, password=$password, pinCode=$pinCode, quotaSizeInBytes=$quotaSizeInBytes, shouldChangePassword=$shouldChangePassword, storageLabel=$storageLabel]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.avatarColor != null) {
|
if (this.avatarColor.unwrapOrNull() != null) {
|
||||||
json[r'avatarColor'] = this.avatarColor;
|
json[r'avatarColor'] = this.avatarColor;
|
||||||
} else {
|
} else {
|
||||||
// json[r'avatarColor'] = null;
|
if(this.avatarColor.isSome) {
|
||||||
|
json[r'avatarColor'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.email != null) {
|
if (this.email != null) {
|
||||||
json[r'email'] = this.email;
|
json[r'email'] = this.email;
|
||||||
@ -112,25 +114,31 @@ class UserAdminUpdateDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'password'] = null;
|
// json[r'password'] = null;
|
||||||
}
|
}
|
||||||
if (this.pinCode != null) {
|
if (this.pinCode.unwrapOrNull() != null) {
|
||||||
json[r'pinCode'] = this.pinCode;
|
json[r'pinCode'] = this.pinCode;
|
||||||
} else {
|
} else {
|
||||||
// json[r'pinCode'] = null;
|
if(this.pinCode.isSome) {
|
||||||
|
json[r'pinCode'] = null;
|
||||||
}
|
}
|
||||||
if (this.quotaSizeInBytes != null) {
|
}
|
||||||
|
if (this.quotaSizeInBytes.unwrapOrNull() != null) {
|
||||||
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
json[r'quotaSizeInBytes'] = this.quotaSizeInBytes;
|
||||||
} else {
|
} else {
|
||||||
// json[r'quotaSizeInBytes'] = null;
|
if(this.quotaSizeInBytes.isSome) {
|
||||||
|
json[r'quotaSizeInBytes'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.shouldChangePassword != null) {
|
if (this.shouldChangePassword != null) {
|
||||||
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
json[r'shouldChangePassword'] = this.shouldChangePassword;
|
||||||
} else {
|
} else {
|
||||||
// json[r'shouldChangePassword'] = null;
|
// json[r'shouldChangePassword'] = null;
|
||||||
}
|
}
|
||||||
if (this.storageLabel != null) {
|
if (this.storageLabel.unwrapOrNull() != null) {
|
||||||
json[r'storageLabel'] = this.storageLabel;
|
json[r'storageLabel'] = this.storageLabel;
|
||||||
} else {
|
} else {
|
||||||
// json[r'storageLabel'] = null;
|
if(this.storageLabel.isSome) {
|
||||||
|
json[r'storageLabel'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -144,14 +152,14 @@ class UserAdminUpdateDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return UserAdminUpdateDto(
|
return UserAdminUpdateDto(
|
||||||
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor']),
|
avatarColor: Option.from(UserAvatarColor.fromJson(json[r'avatarColor'])),
|
||||||
email: mapValueOfType<String>(json, r'email'),
|
email: mapValueOfType<String>(json, r'email'),
|
||||||
name: mapValueOfType<String>(json, r'name'),
|
name: mapValueOfType<String>(json, r'name'),
|
||||||
password: mapValueOfType<String>(json, r'password'),
|
password: mapValueOfType<String>(json, r'password'),
|
||||||
pinCode: mapValueOfType<String>(json, r'pinCode'),
|
pinCode: Option.from(mapValueOfType<String>(json, r'pinCode')),
|
||||||
quotaSizeInBytes: mapValueOfType<int>(json, r'quotaSizeInBytes'),
|
quotaSizeInBytes: Option.from(mapValueOfType<int>(json, r'quotaSizeInBytes')),
|
||||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
||||||
storageLabel: mapValueOfType<String>(json, r'storageLabel'),
|
storageLabel: Option.from(mapValueOfType<String>(json, r'storageLabel')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
14
mobile/openapi/lib/model/user_update_me_dto.dart
generated
14
mobile/openapi/lib/model/user_update_me_dto.dart
generated
@ -13,13 +13,13 @@ part of openapi.api;
|
|||||||
class UserUpdateMeDto {
|
class UserUpdateMeDto {
|
||||||
/// Returns a new [UserUpdateMeDto] instance.
|
/// Returns a new [UserUpdateMeDto] instance.
|
||||||
UserUpdateMeDto({
|
UserUpdateMeDto({
|
||||||
this.avatarColor,
|
this.avatarColor = const None(),
|
||||||
this.email,
|
this.email,
|
||||||
this.name,
|
this.name,
|
||||||
this.password,
|
this.password,
|
||||||
});
|
});
|
||||||
|
|
||||||
UserAvatarColor? avatarColor;
|
Option<UserAvatarColor> avatarColor;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 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
|
||||||
@ -55,7 +55,7 @@ class UserUpdateMeDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(avatarColor == null ? 0 : avatarColor!.hashCode) +
|
(avatarColor.hashCode) +
|
||||||
(email == null ? 0 : email!.hashCode) +
|
(email == null ? 0 : email!.hashCode) +
|
||||||
(name == null ? 0 : name!.hashCode) +
|
(name == null ? 0 : name!.hashCode) +
|
||||||
(password == null ? 0 : password!.hashCode);
|
(password == null ? 0 : password!.hashCode);
|
||||||
@ -65,10 +65,12 @@ class UserUpdateMeDto {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.avatarColor != null) {
|
if (this.avatarColor.unwrapOrNull() != null) {
|
||||||
json[r'avatarColor'] = this.avatarColor;
|
json[r'avatarColor'] = this.avatarColor;
|
||||||
} else {
|
} else {
|
||||||
// json[r'avatarColor'] = null;
|
if(this.avatarColor.isSome) {
|
||||||
|
json[r'avatarColor'] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.email != null) {
|
if (this.email != null) {
|
||||||
json[r'email'] = this.email;
|
json[r'email'] = this.email;
|
||||||
@ -97,7 +99,7 @@ class UserUpdateMeDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return UserUpdateMeDto(
|
return UserUpdateMeDto(
|
||||||
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor']),
|
avatarColor: Option.from(UserAvatarColor.fromJson(json[r'avatarColor'])),
|
||||||
email: mapValueOfType<String>(json, r'email'),
|
email: mapValueOfType<String>(json, r'email'),
|
||||||
name: mapValueOfType<String>(json, r'name'),
|
name: mapValueOfType<String>(json, r'name'),
|
||||||
password: mapValueOfType<String>(json, r'password'),
|
password: mapValueOfType<String>(json, r'password'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user