Skip to content

Commit a641048

Browse files
committed
regenerated samples
1 parent 716e64c commit a641048

4 files changed

Lines changed: 38 additions & 2 deletions

File tree

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AdditionalPropertiesClass.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**mapProperty** | **Map<String, String>** | | [optional]
1212
**mapOfMapProperty** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
13+
**mapOfArrayInteger** | [**Map<String, List<int>>**](List.md) | | [optional]
1314

1415
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1516

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/additional_properties_class.dart

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class AdditionalPropertiesClass {
2323
this.mapProperty,
2424

2525
this.mapOfMapProperty,
26+
27+
this.mapOfArrayInteger,
2628
});
2729

2830
@JsonKey(
@@ -49,17 +51,31 @@ class AdditionalPropertiesClass {
4951

5052

5153

54+
@JsonKey(
55+
56+
name: r'map_of_array_integer',
57+
required: false,
58+
includeIfNull: false,
59+
)
60+
61+
62+
final Map<String, List<int>>? mapOfArrayInteger;
63+
64+
65+
5266

5367

5468
@override
5569
bool operator ==(Object other) => identical(this, other) || other is AdditionalPropertiesClass &&
5670
other.mapProperty == mapProperty &&
57-
other.mapOfMapProperty == mapOfMapProperty;
71+
other.mapOfMapProperty == mapOfMapProperty &&
72+
other.mapOfArrayInteger == mapOfArrayInteger;
5873

5974
@override
6075
int get hashCode =>
6176
mapProperty.hashCode +
62-
mapOfMapProperty.hashCode;
77+
mapOfMapProperty.hashCode +
78+
mapOfArrayInteger.hashCode;
6379

6480
factory AdditionalPropertiesClass.fromJson(Map<String, dynamic> json) => _$AdditionalPropertiesClassFromJson(json);
6581

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AdditionalPropertiesClass.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**mapProperty** | **BuiltMap&lt;String, String&gt;** | | [optional]
1212
**mapOfMapProperty** | [**BuiltMap&lt;String, BuiltMap&lt;String, String&gt;&gt;**](BuiltMap.md) | | [optional]
13+
**mapOfArrayInteger** | [**BuiltMap&lt;String, BuiltList&lt;int&gt;&gt;**](BuiltList.md) | | [optional]
1314

1415
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1516

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/additional_properties_class.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ part 'additional_properties_class.g.dart';
1414
/// Properties:
1515
/// * [mapProperty]
1616
/// * [mapOfMapProperty]
17+
/// * [mapOfArrayInteger]
1718
@BuiltValue()
1819
abstract class AdditionalPropertiesClass implements Built<AdditionalPropertiesClass, AdditionalPropertiesClassBuilder> {
1920
@BuiltValueField(wireName: r'map_property')
@@ -22,6 +23,9 @@ abstract class AdditionalPropertiesClass implements Built<AdditionalPropertiesCl
2223
@BuiltValueField(wireName: r'map_of_map_property')
2324
BuiltMap<String, BuiltMap<String, String>>? get mapOfMapProperty;
2425

26+
@BuiltValueField(wireName: r'map_of_array_integer')
27+
BuiltMap<String, BuiltList<int>>? get mapOfArrayInteger;
28+
2529
AdditionalPropertiesClass._();
2630

2731
factory AdditionalPropertiesClass([void updates(AdditionalPropertiesClassBuilder b)]) = _$AdditionalPropertiesClass;
@@ -59,6 +63,13 @@ class _$AdditionalPropertiesClassSerializer implements PrimitiveSerializer<Addit
5963
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(BuiltMap, [FullType(String), FullType(String)])]),
6064
);
6165
}
66+
if (object.mapOfArrayInteger != null) {
67+
yield r'map_of_array_integer';
68+
yield serializers.serialize(
69+
object.mapOfArrayInteger,
70+
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(BuiltList, [FullType(int)])]),
71+
);
72+
}
6273
}
6374

6475
@override
@@ -96,6 +107,13 @@ class _$AdditionalPropertiesClassSerializer implements PrimitiveSerializer<Addit
96107
) as BuiltMap<String, BuiltMap<String, String>>;
97108
result.mapOfMapProperty.replace(valueDes);
98109
break;
110+
case r'map_of_array_integer':
111+
final valueDes = serializers.deserialize(
112+
value,
113+
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(BuiltList, [FullType(int)])]),
114+
) as BuiltMap<String, BuiltList<int>>;
115+
result.mapOfArrayInteger.replace(valueDes);
116+
break;
99117
default:
100118
unhandled.add(key);
101119
unhandled.add(value);

0 commit comments

Comments
 (0)