refactor(mobile): open api dto upgrade

This commit is contained in:
Jason Rasmussen 2024-09-19 12:05:47 -04:00
parent 0b02fda4e0
commit 88b82b40e5
No known key found for this signature in database
GPG Key ID: 2EF24B77EAFA4A41
197 changed files with 205 additions and 288 deletions

View File

@ -166,7 +166,6 @@ class ApiClient {
/// Returns a native instance of an OpenAPI class matching the [specified type][targetType]. /// Returns a native instance of an OpenAPI class matching the [specified type][targetType].
static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) { static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) {
upgradeDto(value, targetType);
try { try {
switch (targetType) { switch (targetType) {
case 'String': case 'String':

View File

@ -78,6 +78,7 @@ class ActivityCreateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static ActivityCreateDto? fromJson(dynamic value) { static ActivityCreateDto? fromJson(dynamic value) {
upgradeDto(value, "ActivityCreateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -78,6 +78,7 @@ class ActivityResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static ActivityResponseDto? fromJson(dynamic value) { static ActivityResponseDto? fromJson(dynamic value) {
upgradeDto(value, "ActivityResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class ActivityStatisticsResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static ActivityStatisticsResponseDto? fromJson(dynamic value) { static ActivityStatisticsResponseDto? fromJson(dynamic value) {
upgradeDto(value, "ActivityStatisticsResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AddUsersDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AddUsersDto? fromJson(dynamic value) { static AddUsersDto? fromJson(dynamic value) {
upgradeDto(value, "AddUsersDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AdminOnboardingUpdateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AdminOnboardingUpdateDto? fromJson(dynamic value) { static AdminOnboardingUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "AdminOnboardingUpdateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -186,6 +186,7 @@ class AlbumResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AlbumResponseDto? fromJson(dynamic value) { static AlbumResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AlbumResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class AlbumStatisticsResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AlbumStatisticsResponseDto? fromJson(dynamic value) { static AlbumStatisticsResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AlbumStatisticsResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -56,6 +56,7 @@ class AlbumUserAddDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AlbumUserAddDto? fromJson(dynamic value) { static AlbumUserAddDto? fromJson(dynamic value) {
upgradeDto(value, "AlbumUserAddDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AlbumUserCreateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AlbumUserCreateDto? fromJson(dynamic value) { static AlbumUserCreateDto? fromJson(dynamic value) {
upgradeDto(value, "AlbumUserCreateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AlbumUserResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AlbumUserResponseDto? fromJson(dynamic value) { static AlbumUserResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AlbumUserResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -118,6 +118,7 @@ class AllJobStatusResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AllJobStatusResponseDto? fromJson(dynamic value) { static AllJobStatusResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AllJobStatusResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -56,6 +56,7 @@ class APIKeyCreateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static APIKeyCreateDto? fromJson(dynamic value) { static APIKeyCreateDto? fromJson(dynamic value) {
upgradeDto(value, "APIKeyCreateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class APIKeyCreateResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static APIKeyCreateResponseDto? fromJson(dynamic value) { static APIKeyCreateResponseDto? fromJson(dynamic value) {
upgradeDto(value, "APIKeyCreateResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -64,6 +64,7 @@ class APIKeyResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static APIKeyResponseDto? fromJson(dynamic value) { static APIKeyResponseDto? fromJson(dynamic value) {
upgradeDto(value, "APIKeyResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class APIKeyUpdateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static APIKeyUpdateDto? fromJson(dynamic value) { static APIKeyUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "APIKeyUpdateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -56,6 +56,7 @@ class AssetBulkDeleteDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetBulkDeleteDto? fromJson(dynamic value) { static AssetBulkDeleteDto? fromJson(dynamic value) {
upgradeDto(value, "AssetBulkDeleteDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -148,6 +148,7 @@ class AssetBulkUpdateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetBulkUpdateDto? fromJson(dynamic value) { static AssetBulkUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "AssetBulkUpdateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AssetBulkUploadCheckDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetBulkUploadCheckDto? fromJson(dynamic value) { static AssetBulkUploadCheckDto? fromJson(dynamic value) {
upgradeDto(value, "AssetBulkUploadCheckDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -47,6 +47,7 @@ class AssetBulkUploadCheckItem {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetBulkUploadCheckItem? fromJson(dynamic value) { static AssetBulkUploadCheckItem? fromJson(dynamic value) {
upgradeDto(value, "AssetBulkUploadCheckItem");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AssetBulkUploadCheckResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetBulkUploadCheckResponseDto? fromJson(dynamic value) { static AssetBulkUploadCheckResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetBulkUploadCheckResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -88,6 +88,7 @@ class AssetBulkUploadCheckResult {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetBulkUploadCheckResult? fromJson(dynamic value) { static AssetBulkUploadCheckResult? fromJson(dynamic value) {
upgradeDto(value, "AssetBulkUploadCheckResult");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AssetDeltaSyncDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetDeltaSyncDto? fromJson(dynamic value) { static AssetDeltaSyncDto? fromJson(dynamic value) {
upgradeDto(value, "AssetDeltaSyncDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class AssetDeltaSyncResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetDeltaSyncResponseDto? fromJson(dynamic value) { static AssetDeltaSyncResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetDeltaSyncResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -102,6 +102,7 @@ class AssetFaceResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetFaceResponseDto? fromJson(dynamic value) { static AssetFaceResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetFaceResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AssetFaceUpdateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetFaceUpdateDto? fromJson(dynamic value) { static AssetFaceUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "AssetFaceUpdateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AssetFaceUpdateItem {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetFaceUpdateItem? fromJson(dynamic value) { static AssetFaceUpdateItem? fromJson(dynamic value) {
upgradeDto(value, "AssetFaceUpdateItem");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -92,6 +92,7 @@ class AssetFaceWithoutPersonResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetFaceWithoutPersonResponseDto? fromJson(dynamic value) { static AssetFaceWithoutPersonResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetFaceWithoutPersonResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -79,6 +79,7 @@ class AssetFullSyncDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetFullSyncDto? fromJson(dynamic value) { static AssetFullSyncDto? fromJson(dynamic value) {
upgradeDto(value, "AssetFullSyncDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AssetIdsDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetIdsDto? fromJson(dynamic value) { static AssetIdsDto? fromJson(dynamic value) {
upgradeDto(value, "AssetIdsDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -56,6 +56,7 @@ class AssetIdsResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetIdsResponseDto? fromJson(dynamic value) { static AssetIdsResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetIdsResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AssetJobsDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetJobsDto? fromJson(dynamic value) { static AssetJobsDto? fromJson(dynamic value) {
upgradeDto(value, "AssetJobsDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AssetMediaResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetMediaResponseDto? fromJson(dynamic value) { static AssetMediaResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetMediaResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -293,6 +293,7 @@ class AssetResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetResponseDto? fromJson(dynamic value) { static AssetResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class AssetStackResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetStackResponseDto? fromJson(dynamic value) { static AssetStackResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetStackResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class AssetStatsResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AssetStatsResponseDto? fromJson(dynamic value) { static AssetStatsResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AssetStatsResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class AuditDeletesResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AuditDeletesResponseDto? fromJson(dynamic value) { static AuditDeletesResponseDto? fromJson(dynamic value) {
upgradeDto(value, "AuditDeletesResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class AvatarResponse {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AvatarResponse? fromJson(dynamic value) { static AvatarResponse? fromJson(dynamic value) {
upgradeDto(value, "AvatarResponse");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -50,6 +50,7 @@ class AvatarUpdate {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static AvatarUpdate? fromJson(dynamic value) { static AvatarUpdate? fromJson(dynamic value) {
upgradeDto(value, "AvatarUpdate");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -56,6 +56,7 @@ class BulkIdResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static BulkIdResponseDto? fromJson(dynamic value) { static BulkIdResponseDto? fromJson(dynamic value) {
upgradeDto(value, "BulkIdResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class BulkIdsDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static BulkIdsDto? fromJson(dynamic value) { static BulkIdsDto? fromJson(dynamic value) {
upgradeDto(value, "BulkIdsDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class ChangePasswordDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static ChangePasswordDto? fromJson(dynamic value) { static ChangePasswordDto? fromJson(dynamic value) {
upgradeDto(value, "ChangePasswordDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class CheckExistingAssetsDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static CheckExistingAssetsDto? fromJson(dynamic value) { static CheckExistingAssetsDto? fromJson(dynamic value) {
upgradeDto(value, "CheckExistingAssetsDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class CheckExistingAssetsResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static CheckExistingAssetsResponseDto? fromJson(dynamic value) { static CheckExistingAssetsResponseDto? fromJson(dynamic value) {
upgradeDto(value, "CheckExistingAssetsResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class CLIPConfig {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static CLIPConfig? fromJson(dynamic value) { static CLIPConfig? fromJson(dynamic value) {
upgradeDto(value, "CLIPConfig");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -68,6 +68,7 @@ class CreateAlbumDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static CreateAlbumDto? fromJson(dynamic value) { static CreateAlbumDto? fromJson(dynamic value) {
upgradeDto(value, "CreateAlbumDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -68,6 +68,7 @@ class CreateLibraryDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static CreateLibraryDto? fromJson(dynamic value) { static CreateLibraryDto? fromJson(dynamic value) {
upgradeDto(value, "CreateLibraryDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class CreateProfileImageResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static CreateProfileImageResponseDto? fromJson(dynamic value) { static CreateProfileImageResponseDto? fromJson(dynamic value) {
upgradeDto(value, "CreateProfileImageResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class DownloadArchiveInfo {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DownloadArchiveInfo? fromJson(dynamic value) { static DownloadArchiveInfo? fromJson(dynamic value) {
upgradeDto(value, "DownloadArchiveInfo");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -89,6 +89,7 @@ class DownloadInfoDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DownloadInfoDto? fromJson(dynamic value) { static DownloadInfoDto? fromJson(dynamic value) {
upgradeDto(value, "DownloadInfoDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class DownloadResponse {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DownloadResponse? fromJson(dynamic value) { static DownloadResponse? fromJson(dynamic value) {
upgradeDto(value, "DownloadResponse");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class DownloadResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DownloadResponseDto? fromJson(dynamic value) { static DownloadResponseDto? fromJson(dynamic value) {
upgradeDto(value, "DownloadResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -67,6 +67,7 @@ class DownloadUpdate {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DownloadUpdate? fromJson(dynamic value) { static DownloadUpdate? fromJson(dynamic value) {
upgradeDto(value, "DownloadUpdate");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -48,6 +48,7 @@ class DuplicateDetectionConfig {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DuplicateDetectionConfig? fromJson(dynamic value) { static DuplicateDetectionConfig? fromJson(dynamic value) {
upgradeDto(value, "DuplicateDetectionConfig");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class DuplicateResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static DuplicateResponseDto? fromJson(dynamic value) { static DuplicateResponseDto? fromJson(dynamic value) {
upgradeDto(value, "DuplicateResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class EmailNotificationsResponse {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static EmailNotificationsResponse? fromJson(dynamic value) { static EmailNotificationsResponse? fromJson(dynamic value) {
upgradeDto(value, "EmailNotificationsResponse");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -82,6 +82,7 @@ class EmailNotificationsUpdate {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static EmailNotificationsUpdate? fromJson(dynamic value) { static EmailNotificationsUpdate? fromJson(dynamic value) {
upgradeDto(value, "EmailNotificationsUpdate");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -254,6 +254,7 @@ class ExifResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static ExifResponseDto? fromJson(dynamic value) { static ExifResponseDto? fromJson(dynamic value) {
upgradeDto(value, "ExifResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class FaceDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FaceDto? fromJson(dynamic value) { static FaceDto? fromJson(dynamic value) {
upgradeDto(value, "FaceDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -69,6 +69,7 @@ class FacialRecognitionConfig {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FacialRecognitionConfig? fromJson(dynamic value) { static FacialRecognitionConfig? fromJson(dynamic value) {
upgradeDto(value, "FacialRecognitionConfig");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class FileChecksumDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FileChecksumDto? fromJson(dynamic value) { static FileChecksumDto? fromJson(dynamic value) {
upgradeDto(value, "FileChecksumDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class FileChecksumResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FileChecksumResponseDto? fromJson(dynamic value) { static FileChecksumResponseDto? fromJson(dynamic value) {
upgradeDto(value, "FileChecksumResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class FileReportDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FileReportDto? fromJson(dynamic value) { static FileReportDto? fromJson(dynamic value) {
upgradeDto(value, "FileReportDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class FileReportFixDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FileReportFixDto? fromJson(dynamic value) { static FileReportFixDto? fromJson(dynamic value) {
upgradeDto(value, "FileReportFixDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -74,6 +74,7 @@ class FileReportItemDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FileReportItemDto? fromJson(dynamic value) { static FileReportItemDto? fromJson(dynamic value) {
upgradeDto(value, "FileReportItemDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class FoldersResponse {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FoldersResponse? fromJson(dynamic value) { static FoldersResponse? fromJson(dynamic value) {
upgradeDto(value, "FoldersResponse");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -66,6 +66,7 @@ class FoldersUpdate {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static FoldersUpdate? fromJson(dynamic value) { static FoldersUpdate? fromJson(dynamic value) {
upgradeDto(value, "FoldersUpdate");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class JobCommandDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static JobCommandDto? fromJson(dynamic value) { static JobCommandDto? fromJson(dynamic value) {
upgradeDto(value, "JobCommandDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -70,6 +70,7 @@ class JobCountsDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static JobCountsDto? fromJson(dynamic value) { static JobCountsDto? fromJson(dynamic value) {
upgradeDto(value, "JobCountsDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class JobCreateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static JobCreateDto? fromJson(dynamic value) { static JobCreateDto? fromJson(dynamic value) {
upgradeDto(value, "JobCreateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -41,6 +41,7 @@ class JobSettingsDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static JobSettingsDto? fromJson(dynamic value) { static JobSettingsDto? fromJson(dynamic value) {
upgradeDto(value, "JobSettingsDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class JobStatusDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static JobStatusDto? fromJson(dynamic value) { static JobStatusDto? fromJson(dynamic value) {
upgradeDto(value, "JobStatusDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -92,6 +92,7 @@ class LibraryResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LibraryResponseDto? fromJson(dynamic value) { static LibraryResponseDto? fromJson(dynamic value) {
upgradeDto(value, "LibraryResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -58,6 +58,7 @@ class LibraryStatsResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LibraryStatsResponseDto? fromJson(dynamic value) { static LibraryStatsResponseDto? fromJson(dynamic value) {
upgradeDto(value, "LibraryStatsResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class LicenseKeyDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LicenseKeyDto? fromJson(dynamic value) { static LicenseKeyDto? fromJson(dynamic value) {
upgradeDto(value, "LicenseKeyDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -52,6 +52,7 @@ class LicenseResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LicenseResponseDto? fromJson(dynamic value) { static LicenseResponseDto? fromJson(dynamic value) {
upgradeDto(value, "LicenseResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class LoginCredentialDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LoginCredentialDto? fromJson(dynamic value) { static LoginCredentialDto? fromJson(dynamic value) {
upgradeDto(value, "LoginCredentialDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -76,6 +76,7 @@ class LoginResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LoginResponseDto? fromJson(dynamic value) { static LoginResponseDto? fromJson(dynamic value) {
upgradeDto(value, "LoginResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class LogoutResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static LogoutResponseDto? fromJson(dynamic value) { static LogoutResponseDto? fromJson(dynamic value) {
upgradeDto(value, "LogoutResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -82,6 +82,7 @@ class MapMarkerResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MapMarkerResponseDto? fromJson(dynamic value) { static MapMarkerResponseDto? fromJson(dynamic value) {
upgradeDto(value, "MapMarkerResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -64,6 +64,7 @@ class MapReverseGeocodeResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MapReverseGeocodeResponseDto? fromJson(dynamic value) { static MapReverseGeocodeResponseDto? fromJson(dynamic value) {
upgradeDto(value, "MapReverseGeocodeResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class MemoriesResponse {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MemoriesResponse? fromJson(dynamic value) { static MemoriesResponse? fromJson(dynamic value) {
upgradeDto(value, "MemoriesResponse");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -50,6 +50,7 @@ class MemoriesUpdate {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MemoriesUpdate? fromJson(dynamic value) { static MemoriesUpdate? fromJson(dynamic value) {
upgradeDto(value, "MemoriesUpdate");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -90,6 +90,7 @@ class MemoryCreateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MemoryCreateDto? fromJson(dynamic value) { static MemoryCreateDto? fromJson(dynamic value) {
upgradeDto(value, "MemoryCreateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class MemoryLaneResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MemoryLaneResponseDto? fromJson(dynamic value) { static MemoryLaneResponseDto? fromJson(dynamic value) {
upgradeDto(value, "MemoryLaneResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -120,6 +120,7 @@ class MemoryResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MemoryResponseDto? fromJson(dynamic value) { static MemoryResponseDto? fromJson(dynamic value) {
upgradeDto(value, "MemoryResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -82,6 +82,7 @@ class MemoryUpdateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MemoryUpdateDto? fromJson(dynamic value) { static MemoryUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "MemoryUpdateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class MergePersonDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MergePersonDto? fromJson(dynamic value) { static MergePersonDto? fromJson(dynamic value) {
upgradeDto(value, "MergePersonDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -637,6 +637,7 @@ class MetadataSearchDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static MetadataSearchDto? fromJson(dynamic value) { static MetadataSearchDto? fromJson(dynamic value) {
upgradeDto(value, "MetadataSearchDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class OAuthAuthorizeResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static OAuthAuthorizeResponseDto? fromJson(dynamic value) { static OAuthAuthorizeResponseDto? fromJson(dynamic value) {
upgradeDto(value, "OAuthAuthorizeResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class OAuthCallbackDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static OAuthCallbackDto? fromJson(dynamic value) { static OAuthCallbackDto? fromJson(dynamic value) {
upgradeDto(value, "OAuthCallbackDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class OAuthConfigDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static OAuthConfigDto? fromJson(dynamic value) { static OAuthConfigDto? fromJson(dynamic value) {
upgradeDto(value, "OAuthConfigDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -41,6 +41,7 @@ class OnThisDayDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static OnThisDayDto? fromJson(dynamic value) { static OnThisDayDto? fromJson(dynamic value) {
upgradeDto(value, "OnThisDayDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -86,6 +86,7 @@ class PartnerResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PartnerResponseDto? fromJson(dynamic value) { static PartnerResponseDto? fromJson(dynamic value) {
upgradeDto(value, "PartnerResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -46,6 +46,7 @@ class PeopleResponse {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PeopleResponse? fromJson(dynamic value) { static PeopleResponse? fromJson(dynamic value) {
upgradeDto(value, "PeopleResponse");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -69,6 +69,7 @@ class PeopleResponseDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PeopleResponseDto? fromJson(dynamic value) { static PeopleResponseDto? fromJson(dynamic value) {
upgradeDto(value, "PeopleResponseDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -66,6 +66,7 @@ class PeopleUpdate {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PeopleUpdate? fromJson(dynamic value) { static PeopleUpdate? fromJson(dynamic value) {
upgradeDto(value, "PeopleUpdate");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -40,6 +40,7 @@ class PeopleUpdateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PeopleUpdateDto? fromJson(dynamic value) { static PeopleUpdateDto? fromJson(dynamic value) {
upgradeDto(value, "PeopleUpdateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -103,6 +103,7 @@ class PeopleUpdateItem {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PeopleUpdateItem? fromJson(dynamic value) { static PeopleUpdateItem? fromJson(dynamic value) {
upgradeDto(value, "PeopleUpdateItem");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

View File

@ -79,6 +79,7 @@ class PersonCreateDto {
/// [value] if it's a [Map], null otherwise. /// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods // ignore: prefer_constructors_over_static_methods
static PersonCreateDto? fromJson(dynamic value) { static PersonCreateDto? fromJson(dynamic value) {
upgradeDto(value, "PersonCreateDto");
if (value is Map) { if (value is Map) {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();

Some files were not shown because too many files have changed in this diff Show More