73 lines
2.0 KiB
Dart
73 lines
2.0 KiB
Dart
|
// To parse this JSON data, do
|
||
|
//
|
||
|
// final landPropertyBoundaries = landPropertyBoundariesFromJson(jsonString);
|
||
|
|
||
|
import 'dart:convert';
|
||
|
|
||
|
LandPropertyBoundaries landPropertyBoundariesFromJson(String str) =>
|
||
|
LandPropertyBoundaries.fromJson(json.decode(str));
|
||
|
|
||
|
String landPropertyBoundariesToJson(LandPropertyBoundaries data) =>
|
||
|
json.encode(data.toJson());
|
||
|
|
||
|
class LandPropertyBoundaries {
|
||
|
final int? id;
|
||
|
final int? landapprDetailsId;
|
||
|
final String? assessedById;
|
||
|
final String? assessedByName;
|
||
|
final DateTime? dateCreated;
|
||
|
final DateTime? dateModified;
|
||
|
final String? north;
|
||
|
final String? east;
|
||
|
final String? south;
|
||
|
final String? west;
|
||
|
final dynamic sketch;
|
||
|
|
||
|
LandPropertyBoundaries({
|
||
|
this.id,
|
||
|
this.landapprDetailsId,
|
||
|
this.assessedById,
|
||
|
this.assessedByName,
|
||
|
this.dateCreated,
|
||
|
this.dateModified,
|
||
|
this.north,
|
||
|
this.east,
|
||
|
this.south,
|
||
|
this.west,
|
||
|
this.sketch,
|
||
|
});
|
||
|
|
||
|
factory LandPropertyBoundaries.fromJson(Map<String, dynamic> json) =>
|
||
|
LandPropertyBoundaries(
|
||
|
id: json["id"],
|
||
|
landapprDetailsId: json["landappr_details_id"],
|
||
|
assessedById: json["assessed_by_id"],
|
||
|
assessedByName: json["assessed_by_name"],
|
||
|
dateCreated: json["date_created"] == null
|
||
|
? null
|
||
|
: DateTime.parse(json["date_created"]),
|
||
|
dateModified: json["date_modified"] == null
|
||
|
? null
|
||
|
: DateTime.parse(json["date_modified"]),
|
||
|
north: json["north"],
|
||
|
east: json["east"],
|
||
|
south: json["south"],
|
||
|
west: json["west"],
|
||
|
sketch: json["sketch"],
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> toJson() => {
|
||
|
"id": id,
|
||
|
"landappr_details_id": landapprDetailsId,
|
||
|
"assessed_by_id": assessedById,
|
||
|
"assessed_by_name": assessedByName,
|
||
|
"date_created": dateCreated?.toIso8601String(),
|
||
|
"date_modified": dateModified?.toIso8601String(),
|
||
|
"north": north,
|
||
|
"east": east,
|
||
|
"south": south,
|
||
|
"west": west,
|
||
|
"sketch": sketch,
|
||
|
};
|
||
|
}
|