// To parse this JSON data, do // // final bldgLoc = bldgLocFromJson(jsonString); import 'dart:convert'; BldgLoc bldgLocFromJson(String str) => BldgLoc.fromJson(json.decode(str)); String bldgLocToJson(BldgLoc data) => json.encode(data.toJson()); class BldgLoc { BldgLoc({ this.id, this.bldgapprDetailsId, this.street, this.barangay, this.municipality, this.province, }); final int? id; final int? bldgapprDetailsId; final String? street; final String? barangay; final String? municipality; final String? province; factory BldgLoc.fromJson(Map json) => BldgLoc( id: json["id"], bldgapprDetailsId: json["bldgappr_details_id"], street: json["street"], barangay: json["barangay"], municipality: json["municipality"], province: json["province"], ); Map toJson() => { "id": id, "bldgappr_details_id": bldgapprDetailsId, "street": street, "barangay": barangay, "municipality": municipality, "province": province, }; }