diff --git a/lib/src/models/layout_grid.g.dart b/lib/src/models/layout_grid.g.dart index 2106c91..a6fd9f1 100644 --- a/lib/src/models/layout_grid.g.dart +++ b/lib/src/models/layout_grid.g.dart @@ -146,7 +146,7 @@ LayoutGrid _$LayoutGridFromJson(Map json) => LayoutGrid( alignment: $enumDecodeNullable(_$LayoutAlignEnumMap, json['alignment']), gutterSize: (json['gutterSize'] as num?)?.toDouble(), offset: (json['offset'] as num?)?.toDouble(), - count: json['count'] as int?, + count: (json['count'] as num?)?.toInt(), ); Map _$LayoutGridToJson(LayoutGrid instance) => diff --git a/lib/src/models/service/component_response.g.dart b/lib/src/models/service/component_response.g.dart index 80e3149..5b78189 100644 --- a/lib/src/models/service/component_response.g.dart +++ b/lib/src/models/service/component_response.g.dart @@ -85,7 +85,7 @@ extension $ComponentResponseCopyWith on ComponentResponse { ComponentResponse _$ComponentResponseFromJson(Map json) => ComponentResponse( - status: json['status'] as int?, + status: (json['status'] as num?)?.toInt(), error: json['error'] as bool?, component: json['meta'] == null ? null diff --git a/lib/src/models/service/components_response.g.dart b/lib/src/models/service/components_response.g.dart index 4f7ea42..8793368 100644 --- a/lib/src/models/service/components_response.g.dart +++ b/lib/src/models/service/components_response.g.dart @@ -84,7 +84,7 @@ extension $ComponentsResponseCopyWith on ComponentsResponse { ComponentsResponse _$ComponentsResponseFromJson(Map json) => ComponentsResponse( - status: json['status'] as int?, + status: (json['status'] as num?)?.toInt(), error: json['error'] as bool?, meta: json['meta'] == null ? null diff --git a/lib/src/models/service/cursor.g.dart b/lib/src/models/service/cursor.g.dart index ce202f6..37351a5 100644 --- a/lib/src/models/service/cursor.g.dart +++ b/lib/src/models/service/cursor.g.dart @@ -71,8 +71,8 @@ extension $CursorCopyWith on Cursor { // ************************************************************************** Cursor _$CursorFromJson(Map json) => Cursor( - before: json['before'] as int?, - after: json['after'] as int?, + before: (json['before'] as num?)?.toInt(), + after: (json['after'] as num?)?.toInt(), ); Map _$CursorToJson(Cursor instance) => { diff --git a/lib/src/models/service/file_response.g.dart b/lib/src/models/service/file_response.g.dart index 63ffdc5..9173787 100644 --- a/lib/src/models/service/file_response.g.dart +++ b/lib/src/models/service/file_response.g.dart @@ -178,7 +178,7 @@ FileResponse _$FileResponseFromJson(Map json) => FileResponse( componentSets: (json['componentSets'] as Map?)?.map( (k, e) => MapEntry(k, ComponentSet.fromJson(e as Map)), ), - schemaVersion: json['schemaVersion'] as int?, + schemaVersion: (json['schemaVersion'] as num?)?.toInt(), styles: (json['styles'] as Map?)?.map( (k, e) => MapEntry(k, Style.fromJson(e as Map)), ), diff --git a/lib/src/models/service/image_response.g.dart b/lib/src/models/service/image_response.g.dart index 296fd8a..c285add 100644 --- a/lib/src/models/service/image_response.g.dart +++ b/lib/src/models/service/image_response.g.dart @@ -104,7 +104,7 @@ ImageResponse _$ImageResponseFromJson(Map json) => ?.map( (k, e) => MapEntry(k, e as String), ), - status: json['status'] as int?, + status: (json['status'] as num?)?.toInt(), ); Map _$ImageResponseToJson(ImageResponse instance) => diff --git a/lib/src/models/service/style_response.g.dart b/lib/src/models/service/style_response.g.dart index 8986510..77d3583 100644 --- a/lib/src/models/service/style_response.g.dart +++ b/lib/src/models/service/style_response.g.dart @@ -83,7 +83,7 @@ extension $StyleResponseCopyWith on StyleResponse { StyleResponse _$StyleResponseFromJson(Map json) => StyleResponse( - status: json['status'] as int?, + status: (json['status'] as num?)?.toInt(), error: json['error'] as bool?, style: json['meta'] == null ? null diff --git a/lib/src/models/service/styles_response.g.dart b/lib/src/models/service/styles_response.g.dart index 264e996..f6037a7 100644 --- a/lib/src/models/service/styles_response.g.dart +++ b/lib/src/models/service/styles_response.g.dart @@ -83,7 +83,7 @@ extension $StylesResponseCopyWith on StylesResponse { StylesResponse _$StylesResponseFromJson(Map json) => StylesResponse( - status: json['status'] as int?, + status: (json['status'] as num?)?.toInt(), error: json['error'] as bool?, meta: json['meta'] == null ? null diff --git a/lib/src/models/text.g.dart b/lib/src/models/text.g.dart index 8b5e82b..41b08a2 100644 --- a/lib/src/models/text.g.dart +++ b/lib/src/models/text.g.dart @@ -650,7 +650,7 @@ Text _$TextFromJson(Map json) => Text( : TypeStyle.fromJson(json['style'] as Map), characterStyleOverrides: (json['characterStyleOverrides'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList(), styleOverrideTable: (json['styleOverrideTable'] as Map?)?.map( @@ -661,7 +661,7 @@ Text _$TextFromJson(Map json) => Text( ?.map((e) => $enumDecode(_$LineTypeEnumMap, e)) .toList(), lineIndentations: (json['lineIndentations'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList(), );