passo_mobile_app/lib/model/passo/land_property_assessment.dart

57 lines
1.6 KiB
Dart

// To parse this JSON data, do
//
// final landPropertyAssessment = landPropertyAssessmentFromJson(jsonString);
import 'dart:convert';
LandPropertyAssessment landPropertyAssessmentFromJson(String str) =>
LandPropertyAssessment.fromJson(json.decode(str));
String landPropertyAssessmentToJson(LandPropertyAssessment data) =>
json.encode(data.toJson());
class LandPropertyAssessment {
final int? id;
final int? landapprDetailsId;
final String? actualUse;
final String? marketval;
final String? assessmentLevel;
final String? assessedValue;
final String? totalMarketval;
final String? totalAssessedval;
LandPropertyAssessment({
this.id,
this.landapprDetailsId,
this.actualUse,
this.marketval,
this.assessmentLevel,
this.assessedValue,
this.totalMarketval,
this.totalAssessedval,
});
factory LandPropertyAssessment.fromJson(Map<String, dynamic> json) =>
LandPropertyAssessment(
id: json["id"],
landapprDetailsId: json["landappr_details_id"],
actualUse: json["actual_use"],
marketval: json["marketval"],
assessmentLevel: json["assessment_level"],
assessedValue: json["assessed_value"],
totalMarketval: json["total_marketval"],
totalAssessedval: json["total_assessedval"],
);
Map<String, dynamic> toJson() => {
"id": id,
"landappr_details_id": landapprDetailsId,
"actual_use": actualUse,
"marketval": marketval,
"assessment_level": assessmentLevel,
"assessed_value": assessedValue,
"total_marketval": totalMarketval,
"total_assessedval": totalAssessedval,
};
}