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 {
|
2023-09-01 03:22:48 +00:00
|
|
|
final int? id;
|
|
|
|
final int? bldgapprDetailsId;
|
|
|
|
final String? assessedById;
|
|
|
|
final String? assessedByName;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String? dateCreated;
|
|
|
|
final String? dateModified;
|
2023-09-01 03:22:48 +00:00
|
|
|
final dynamic owner;
|
|
|
|
final dynamic cloaNo;
|
|
|
|
final dynamic lotNo;
|
|
|
|
final dynamic tdn;
|
|
|
|
final dynamic area;
|
|
|
|
final dynamic surveyNo;
|
|
|
|
final dynamic blkNo;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String? genCode;
|
2023-09-01 03:22:48 +00:00
|
|
|
|
2023-07-28 02:35:36 +00:00
|
|
|
LandRef({
|
|
|
|
this.id,
|
|
|
|
this.bldgapprDetailsId,
|
2023-09-01 03:22:48 +00:00
|
|
|
this.assessedById,
|
|
|
|
this.assessedByName,
|
|
|
|
this.dateCreated,
|
|
|
|
this.dateModified,
|
2023-07-28 02:35:36 +00:00
|
|
|
this.owner,
|
|
|
|
this.cloaNo,
|
|
|
|
this.lotNo,
|
|
|
|
this.tdn,
|
|
|
|
this.area,
|
|
|
|
this.surveyNo,
|
|
|
|
this.blkNo,
|
2024-03-21 05:47:57 +00:00
|
|
|
this.genCode,
|
2023-07-28 02:35:36 +00:00
|
|
|
});
|
|
|
|
|
2023-11-10 08:38:47 +00:00
|
|
|
LandRef copy({
|
|
|
|
int? id,
|
|
|
|
int? bldgapprDetailsId,
|
|
|
|
String? assessedById,
|
|
|
|
String? assessedByName,
|
2024-03-21 05:47:57 +00:00
|
|
|
String? dateCreated,
|
|
|
|
String? dateModified,
|
2023-11-10 08:38:47 +00:00
|
|
|
String? owner,
|
|
|
|
String? cloaNo,
|
|
|
|
String? lotNo,
|
|
|
|
String? tdn,
|
|
|
|
String? area,
|
|
|
|
String? surveyNo,
|
|
|
|
String? blkNo,
|
2024-03-21 05:47:57 +00:00
|
|
|
String? genCode,
|
2023-11-10 08:38:47 +00:00
|
|
|
}) {
|
|
|
|
return LandRef(
|
|
|
|
id: id ?? this.id,
|
|
|
|
bldgapprDetailsId: bldgapprDetailsId ?? this.bldgapprDetailsId,
|
|
|
|
assessedById: assessedById ?? this.assessedById,
|
|
|
|
assessedByName: assessedByName ?? this.assessedByName,
|
|
|
|
dateCreated: dateCreated ?? this.dateCreated,
|
|
|
|
dateModified: dateModified ?? this.dateModified,
|
|
|
|
owner: owner ?? this.owner,
|
|
|
|
cloaNo: cloaNo ?? this.cloaNo,
|
|
|
|
lotNo: lotNo ?? this.lotNo,
|
|
|
|
tdn: tdn ?? this.tdn,
|
|
|
|
area: area ?? this.area,
|
|
|
|
surveyNo: surveyNo ?? this.surveyNo,
|
|
|
|
blkNo: blkNo ?? this.blkNo,
|
2024-03-21 05:47:57 +00:00
|
|
|
genCode: genCode ?? this.genCode,
|
2023-11-10 08:38:47 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-07-28 02:35:36 +00:00
|
|
|
factory LandRef.fromJson(Map<String, dynamic> json) => LandRef(
|
2024-03-21 05:47:57 +00:00
|
|
|
id: json["id"],
|
|
|
|
bldgapprDetailsId: json["bldgappr_details_id"],
|
|
|
|
assessedById: json["assessed_by_id"],
|
|
|
|
assessedByName: json["assessed_by_name"],
|
|
|
|
dateCreated: json["date_created"],
|
|
|
|
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"],
|
|
|
|
genCode: json["gen_code"]);
|
2023-07-28 02:35:36 +00:00
|
|
|
|
2023-11-10 08:38:47 +00:00
|
|
|
factory LandRef.fromJson2(Map<String, dynamic> json) => LandRef(
|
|
|
|
id: json["id"],
|
|
|
|
bldgapprDetailsId: json["bldgapprDetailsId"],
|
|
|
|
assessedById: json["assessedById"],
|
|
|
|
assessedByName: json["assessedByName"],
|
2024-03-21 05:47:57 +00:00
|
|
|
dateCreated: json["dateCreated"],
|
|
|
|
dateModified: json["dateModified"],
|
2023-11-10 08:38:47 +00:00
|
|
|
owner: json["owner"],
|
|
|
|
cloaNo: json["cloaNo"],
|
|
|
|
lotNo: json["lotNo"],
|
|
|
|
tdn: json["tdn"],
|
|
|
|
area: json["area"],
|
|
|
|
surveyNo: json["surveyNo"],
|
|
|
|
blkNo: json["blkNo"],
|
2024-03-21 05:47:57 +00:00
|
|
|
genCode: json["gen_code"],
|
2023-11-10 08:38:47 +00:00
|
|
|
);
|
|
|
|
|
2023-07-28 02:35:36 +00:00
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"id": id,
|
|
|
|
"bldgappr_details_id": bldgapprDetailsId,
|
2023-09-01 03:22:48 +00:00
|
|
|
"assessed_by_id": assessedById,
|
|
|
|
"assessed_by_name": assessedByName,
|
2024-03-21 05:47:57 +00:00
|
|
|
"date_created": dateCreated,
|
|
|
|
"date_modified": dateModified,
|
2023-07-28 02:35:36 +00:00
|
|
|
"owner": owner,
|
|
|
|
"cloa_no": cloaNo,
|
|
|
|
"lot_no": lotNo,
|
|
|
|
"tdn": tdn,
|
|
|
|
"area": area,
|
|
|
|
"survey_no": surveyNo,
|
|
|
|
"blk_no": blkNo,
|
2024-03-21 05:47:57 +00:00
|
|
|
"gen_code": genCode,
|
2023-07-28 02:35:36 +00:00
|
|
|
};
|
|
|
|
}
|