2023-09-01 03:22:48 +00:00
|
|
|
// To parse this JSON data, do
|
|
|
|
//
|
|
|
|
// final landSubClassification = landSubClassificationFromJson(jsonString);
|
|
|
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
LandSubClassification landSubClassificationFromJson(String str) =>
|
|
|
|
LandSubClassification.fromJson(json.decode(str));
|
|
|
|
|
|
|
|
String landSubClassificationToJson(LandSubClassification data) =>
|
|
|
|
json.encode(data.toJson());
|
|
|
|
|
|
|
|
class LandSubClassification {
|
|
|
|
final int? id;
|
|
|
|
final int? classificationId;
|
|
|
|
final String? cityCode;
|
|
|
|
final String? subclassCode;
|
|
|
|
final String? subclassDescription;
|
|
|
|
final String? baseUnitMarketval;
|
|
|
|
|
|
|
|
LandSubClassification({
|
|
|
|
this.id,
|
|
|
|
this.classificationId,
|
|
|
|
this.cityCode,
|
|
|
|
this.subclassCode,
|
|
|
|
this.subclassDescription,
|
|
|
|
this.baseUnitMarketval,
|
|
|
|
});
|
|
|
|
|
2024-02-08 00:52:29 +00:00
|
|
|
LandSubClassification copy({
|
|
|
|
final int? id,
|
|
|
|
final int? classificationId,
|
|
|
|
final String? cityCode,
|
|
|
|
final String? subclassCode,
|
|
|
|
final String? subclassDescription,
|
|
|
|
final String? baseUnitMarketval,
|
|
|
|
}) {
|
|
|
|
return LandSubClassification(
|
|
|
|
id: id ?? this.id,
|
|
|
|
classificationId: classificationId ?? this.classificationId,
|
|
|
|
cityCode: cityCode ?? this.cityCode,
|
|
|
|
subclassCode: subclassCode ?? this.subclassCode,
|
|
|
|
subclassDescription: subclassDescription ?? this.subclassDescription,
|
|
|
|
baseUnitMarketval: baseUnitMarketval ?? this.baseUnitMarketval,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-09-01 03:22:48 +00:00
|
|
|
factory LandSubClassification.fromJson(Map<String, dynamic> json) =>
|
|
|
|
LandSubClassification(
|
|
|
|
id: json["id"],
|
|
|
|
classificationId: json["classification_id"],
|
|
|
|
cityCode: json["city_code"],
|
|
|
|
subclassCode: json["subclass_code"],
|
|
|
|
subclassDescription: json["subclass_description"],
|
|
|
|
baseUnitMarketval: json["base_unit_marketval"],
|
|
|
|
);
|
|
|
|
|
2024-02-08 00:52:29 +00:00
|
|
|
factory LandSubClassification.fromJson2(Map<String, dynamic> json) =>
|
|
|
|
LandSubClassification(
|
|
|
|
id: json["id"],
|
|
|
|
classificationId: json["classificationId"],
|
|
|
|
cityCode: json["cityCode"],
|
|
|
|
subclassCode: json["subclassCode"],
|
|
|
|
subclassDescription: json["subclassDescription"],
|
|
|
|
baseUnitMarketval: json["baseUnitMarketval"],
|
|
|
|
);
|
|
|
|
|
2023-09-01 03:22:48 +00:00
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"id": id,
|
|
|
|
"classification_id": classificationId,
|
|
|
|
"city_code": cityCode,
|
|
|
|
"subclass_code": subclassCode,
|
|
|
|
"subclass_description": subclassDescription,
|
|
|
|
"base_unit_marketval": baseUnitMarketval,
|
|
|
|
};
|
|
|
|
}
|