Will @JsonSerialization
take care of the List mapping if there exists a List in Flutter?
@JsonSerializable()
class Content {
Content(this.contentItems);
@JsonKey(name: "content-items")
List<Movie> contentItems;
factory Content.fromJson(Map<String, dynamic> json) =>
_$ContentFromJson(json);
Map<String, dynamic> toJson() => _$ContentToJson(this);
}
In the above class do we need to manually convert the json to list of Movie?