Open SaeedMasoumi opened 5 years ago
If the swagger response contains a list of DateTime objects, It generates the wrong method for parsing from JSON.
DateTime
For example for the below JSON:
{ "dates" : [ ... ] }
It generates:
MyDto.fromJson(Map<String, dynamic> json) { if (json == null) return; dates = DateTime.listFromJson(json['dates']); }
So, the DateTime has no listFromJson method.
listFromJson
I'm using the online editor to generate dart client code.
Any workaround there ?
If the swagger response contains a list of
DateTime
objects, It generates the wrong method for parsing from JSON.For example for the below JSON:
It generates:
So, the
DateTime
has nolistFromJson
method.I'm using the online editor to generate dart client code.