-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
Description
this open-api spech part:
"CollectionCalendarDto": {
"type": "object",
"properties": {
"calendar": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},generates correctly the property
Map<String, List<int>> calendar;but the fromJson method is wrong:
return CollectionCalendarDto(
calendar: json[r'calendar'] == null
? const {}
: mapCastOfType<String, List>(json, r'calendar'),
mostWornWatch: WatchTinyDto.fromJson(json[r'most_worn_watch']),
);the int is missing and as this is a required type it should have a trailing !