passo_mobile_app/lib/model/passo/land_ref.dart

58 lines
1.3 KiB
Dart
Raw Normal View History

2023-07-28 02:35:36 +00:00
// 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,
};
}