skip to Main Content

Android Studio – How to retrieve data from a complicated json data model in Flutter

Shippingmodel shippingmodelFromJson(String str) => Shippingmodel.fromJson(json.decode(str)); String shippingmodelToJson(Shippingmodel data) => json.encode(data.toJson()); class Shippingmodel { Shippingmodel({ this.sellerShipping, this.result, this.shippingType, this.value, this.valueString, }); Map<String, List<SellerShipping>> sellerShipping; bool result; String shippingType; int value; String valueString; factory Shippingmodel.fromJson(Map<String, dynamic> json) => Shippingmodel( sellerShipping: Map.from(json["seller_shipping"]).map((k, v)…

VIEW QUESTION
Back To Top
Search