passo_mobile_app/lib/model/passo/land_ref.dart

127 lines
3.4 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 {
final int? id;
final int? bldgapprDetailsId;
final String? assessedById;
final String? assessedByName;
final String? dateCreated;
final String? dateModified;
final dynamic owner;
final dynamic cloaNo;
final dynamic lotNo;
final dynamic tdn;
final dynamic area;
final dynamic surveyNo;
final dynamic blkNo;
final String? genCode;
LandRef({
this.id,
this.bldgapprDetailsId,
this.assessedById,
this.assessedByName,
this.dateCreated,
this.dateModified,
this.owner,
this.cloaNo,
this.lotNo,
this.tdn,
this.area,
this.surveyNo,
this.blkNo,
this.genCode,
});
LandRef copy({
int? id,
int? bldgapprDetailsId,
String? assessedById,
String? assessedByName,
String? dateCreated,
String? dateModified,
String? owner,
String? cloaNo,
String? lotNo,
String? tdn,
String? area,
String? surveyNo,
String? blkNo,
String? genCode,
}) {
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,
genCode: genCode ?? this.genCode,
);
}
factory LandRef.fromJson(Map<String, dynamic> json) => LandRef(
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"]);
factory LandRef.fromJson2(Map<String, dynamic> json) => LandRef(
id: json["id"],
bldgapprDetailsId: json["bldgapprDetailsId"],
assessedById: json["assessedById"],
assessedByName: json["assessedByName"],
dateCreated: json["dateCreated"],
dateModified: json["dateModified"],
owner: json["owner"],
cloaNo: json["cloaNo"],
lotNo: json["lotNo"],
tdn: json["tdn"],
area: json["area"],
surveyNo: json["surveyNo"],
blkNo: json["blkNo"],
genCode: json["gen_code"],
);
Map<String, dynamic> toJson() => {
"id": id,
"bldgappr_details_id": bldgapprDetailsId,
"assessed_by_id": assessedById,
"assessed_by_name": assessedByName,
"date_created": dateCreated,
"date_modified": dateModified,
"owner": owner,
"cloa_no": cloaNo,
"lot_no": lotNo,
"tdn": tdn,
"area": area,
"survey_no": surveyNo,
"blk_no": blkNo,
"gen_code": genCode,
};
}