58 lines
1.3 KiB
Dart
58 lines
1.3 KiB
Dart
|
// To parse this JSON data, do
|
||
|
//
|
||
|
// final landRef = landRefFromJson(jsonString);
|
||
|
|
||
|
import 'dart:convert';
|
||
|
|
||
|
LandRef landRefFromJson(String str) => LandRef.fromJson(json.decode(str));
|
||
|
|
||
|
String landRefToJson(LandRef data) => json.encode(data.toJson());
|
||
|
|
||
|
class LandRef {
|
||
|
LandRef({
|
||
|
this.id,
|
||
|
this.bldgapprDetailsId,
|
||
|
this.owner,
|
||
|
this.cloaNo,
|
||
|
this.lotNo,
|
||
|
this.tdn,
|
||
|
this.area,
|
||
|
this.surveyNo,
|
||
|
this.blkNo,
|
||
|
});
|
||
|
|
||
|
final int? id;
|
||
|
final int? bldgapprDetailsId;
|
||
|
final String? owner;
|
||
|
final String? cloaNo;
|
||
|
final String? lotNo;
|
||
|
final String? tdn;
|
||
|
final String? area;
|
||
|
final String? surveyNo;
|
||
|
final String? blkNo;
|
||
|
|
||
|
factory LandRef.fromJson(Map<String, dynamic> json) => LandRef(
|
||
|
id: json["id"],
|
||
|
bldgapprDetailsId: json["bldgappr_details_id"],
|
||
|
owner: json["owner"],
|
||
|
cloaNo: json["cloa_no"],
|
||
|
lotNo: json["lot_no"],
|
||
|
tdn: json["tdn"],
|
||
|
area: json["area"],
|
||
|
surveyNo: json["survey_no"],
|
||
|
blkNo: json["blk_no"],
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> toJson() => {
|
||
|
"id": id,
|
||
|
"bldgappr_details_id": bldgapprDetailsId,
|
||
|
"owner": owner,
|
||
|
"cloa_no": cloaNo,
|
||
|
"lot_no": lotNo,
|
||
|
"tdn": tdn,
|
||
|
"area": area,
|
||
|
"survey_no": surveyNo,
|
||
|
"blk_no": blkNo,
|
||
|
};
|
||
|
}
|