passo_mobile_app/lib/model/passo/land_property_loc.dart

104 lines
2.8 KiB
Dart
Raw Permalink Normal View History

2023-09-01 03:22:48 +00:00
// To parse this JSON data, do
//
// final lnadPropertyLoc = lnadPropertyLocFromJson(jsonString);
import 'dart:convert';
LandPropertyLoc lnadPropertyLocFromJson(String str) =>
LandPropertyLoc.fromJson(json.decode(str));
String lnadPropertyLocToJson(LandPropertyLoc data) =>
json.encode(data.toJson());
class LandPropertyLoc {
final int? id;
final int? landapprDetailsId;
final String? assessedById;
final String? assessedByName;
2024-02-08 00:52:29 +00:00
final String? dateCreated;
final String? dateModified;
2023-09-01 03:22:48 +00:00
final String? street;
final String? municipality;
final String? barangay;
final String? province;
LandPropertyLoc({
this.id,
this.landapprDetailsId,
this.assessedById,
this.assessedByName,
this.dateCreated,
this.dateModified,
this.street,
this.municipality,
this.barangay,
this.province,
});
2024-02-08 00:52:29 +00:00
LandPropertyLoc copy({
int? id,
int? landapprDetailsId,
String? assessedById,
String? assessedByName,
String? dateCreated,
String? dateModified,
String? street,
String? municipality,
String? barangay,
String? province,
}) =>
LandPropertyLoc(
id: id,
landapprDetailsId: landapprDetailsId,
assessedById: assessedById,
assessedByName: assessedByName,
dateCreated: dateCreated,
dateModified: dateModified,
street: street,
municipality: municipality,
barangay: barangay,
province: province,
);
2023-09-01 03:22:48 +00:00
factory LandPropertyLoc.fromJson(Map<String, dynamic> json) =>
LandPropertyLoc(
id: json["id"],
landapprDetailsId: json["landappr_details_id"],
assessedById: json["assessed_by_id"],
assessedByName: json["assessed_by_name"],
2024-02-08 00:52:29 +00:00
dateCreated: json["date_created"],
dateModified: json["date_modified"],
street: json["street"],
municipality: json["municipality"],
barangay: json["barangay"],
province: json["province"],
);
factory LandPropertyLoc.fromJson2(Map<String, dynamic> json) =>
LandPropertyLoc(
id: json["id"],
landapprDetailsId: json["landapprDetailsId"],
assessedById: json["assessedById"],
assessedByName: json["assessedByName"],
dateCreated: json["dateCreated"],
dateModified: json["dateModified"],
2023-09-01 03:22:48 +00:00
street: json["street"],
municipality: json["municipality"],
barangay: json["barangay"],
province: json["province"],
);
Map<String, dynamic> toJson() => {
"id": id,
"landappr_details_id": landapprDetailsId,
"assessed_by_id": assessedById,
"assessed_by_name": assessedByName,
2024-02-08 00:52:29 +00:00
"date_created": dateCreated,
"date_modified": dateModified,
2023-09-01 03:22:48 +00:00
"street": street,
"municipality": municipality,
"barangay": barangay,
"province": province,
};
}