// To parse this JSON data, do // // final otherImprovements = otherImprovementsFromJson(jsonString); import 'dart:convert'; OtherImprovements otherImprovementsFromJson(String str) => OtherImprovements.fromJson(json.decode(str)); String otherImprovementsToJson(OtherImprovements data) => json.encode(data.toJson()); class OtherImprovements { final int? id; final int? landapprDetailsId; final String? kindsOfTrees; final String? subclassAge; final int? quantity; final String? unitValue; final String? baseMarketval; final int? noOfProductive; final int? noOfNonproductive; final bool? fruitBearing; OtherImprovements({ this.id, this.landapprDetailsId, this.kindsOfTrees, this.subclassAge, this.quantity, this.unitValue, this.baseMarketval, this.noOfProductive, this.noOfNonproductive, this.fruitBearing, }); factory OtherImprovements.fromJson(Map json) => OtherImprovements( id: json["id"], landapprDetailsId: json["landappr_details_id"], kindsOfTrees: json["kinds_of_trees"], subclassAge: json["subclass_age"], quantity: json["quantity"], unitValue: json["unit_value"], baseMarketval: json["base_marketval"], noOfProductive: json["no_of_productive"], noOfNonproductive: json["no_of_nonproductive"], fruitBearing: json["fruit_bearing"], ); Map toJson() => { "id": id, "landappr_details_id": landapprDetailsId, "kinds_of_trees": kindsOfTrees, "subclass_age": subclassAge, "quantity": quantity, "unit_value": unitValue, "base_marketval": baseMarketval, "no_of_productive": noOfProductive, "no_of_nonproductive": noOfNonproductive, "fruit_bearing": fruitBearing, }; }