passo_mobile_app/lib/model/passo/property_assessment.dart

174 lines
5.9 KiB
Dart
Raw Normal View History

2023-07-28 02:35:36 +00:00
// To parse this JSON data, do
//
// final propertyAssessment = propertyAssessmentFromJson(jsonString);
import 'package:meta/meta.dart';
import 'dart:convert';
PropertyAssessment propertyAssessmentFromJson(String str) =>
PropertyAssessment.fromJson(json.decode(str));
String propertyAssessmentToJson(PropertyAssessment data) =>
json.encode(data.toJson());
class PropertyAssessment {
final int id;
final int bldgapprDetailsId;
final String actualUse;
final String marketValue;
final String assessmentLevel;
final String assessedValue;
2024-02-08 00:52:29 +00:00
final String taxable;
final String exempt;
final String qtr;
final String yr;
2023-07-28 02:35:36 +00:00
final String appraisedbyName;
2024-02-08 00:52:29 +00:00
final String appraisedbyDate;
2023-07-28 02:35:36 +00:00
final String recommendapprName;
2024-02-08 00:52:29 +00:00
final String recommendapprDate;
2023-07-28 02:35:36 +00:00
final String approvedbyName;
final String memoranda;
final String swornstatementNo;
2024-02-08 00:52:29 +00:00
final String dateReceived;
final String entryDateAssessment;
2023-07-28 02:35:36 +00:00
final String entryDateBy;
PropertyAssessment({
required this.id,
required this.bldgapprDetailsId,
required this.actualUse,
required this.marketValue,
required this.assessmentLevel,
required this.assessedValue,
required this.taxable,
required this.exempt,
required this.qtr,
required this.yr,
required this.appraisedbyName,
required this.appraisedbyDate,
required this.recommendapprName,
required this.recommendapprDate,
required this.approvedbyName,
required this.memoranda,
required this.swornstatementNo,
required this.dateReceived,
required this.entryDateAssessment,
required this.entryDateBy,
});
PropertyAssessment copy({
int? id,
int? bldgapprDetailsId,
String? actualUse,
String? marketValue,
String? assessmentLevel,
String? assessedValue,
2024-02-08 00:52:29 +00:00
String? taxable,
String? exempt,
String? qtr,
String? yr,
String? appraisedbyName,
2024-02-08 00:52:29 +00:00
String? appraisedbyDate,
String? recommendapprName,
2024-02-08 00:52:29 +00:00
String? recommendapprDate,
String? approvedbyName,
String? memoranda,
String? swornstatementNo,
2024-02-08 00:52:29 +00:00
String? dateReceived,
String? entryDateAssessment,
String? entryDateBy,
}) =>
PropertyAssessment(
id: id ?? this.id,
bldgapprDetailsId: bldgapprDetailsId ?? this.bldgapprDetailsId,
actualUse: actualUse ?? this.actualUse,
marketValue: marketValue ?? this.marketValue,
assessmentLevel: assessmentLevel ?? this.assessmentLevel,
assessedValue: assessedValue ?? this.assessedValue,
taxable: taxable ?? this.taxable,
exempt: exempt ?? this.exempt,
qtr: qtr ?? this.qtr,
yr: yr ?? this.yr,
appraisedbyName: appraisedbyName ?? this.appraisedbyName,
appraisedbyDate: appraisedbyDate ?? this.appraisedbyDate,
recommendapprName: recommendapprName ?? this.recommendapprName,
recommendapprDate: recommendapprDate ?? this.recommendapprDate,
approvedbyName: approvedbyName ?? this.approvedbyName,
memoranda: memoranda ?? this.memoranda,
swornstatementNo: swornstatementNo ?? this.swornstatementNo,
dateReceived: dateReceived ?? this.dateReceived,
entryDateAssessment: entryDateAssessment ?? this.entryDateAssessment,
entryDateBy: entryDateBy ?? this.entryDateBy,
);
2023-07-28 02:35:36 +00:00
factory PropertyAssessment.fromJson(Map<String, dynamic> json) =>
PropertyAssessment(
id: json["id"],
bldgapprDetailsId: json["bldgappr_details_id"],
actualUse: json["actual_use"],
marketValue: json["market_value"],
assessmentLevel: json["assessment_level"],
assessedValue: json["assessed_value"],
taxable: json["taxable"],
exempt: json["exempt"],
qtr: json["qtr"],
yr: json["yr"],
appraisedbyName: json["appraisedby_name"],
2024-02-08 00:52:29 +00:00
appraisedbyDate: json["appraisedby_date"],
2023-07-28 02:35:36 +00:00
recommendapprName: json["recommendappr_name"],
2024-02-08 00:52:29 +00:00
recommendapprDate: json["recommendappr_date"],
2023-07-28 02:35:36 +00:00
approvedbyName: json["approvedby_name"],
memoranda: json["memoranda"],
swornstatementNo: json["swornstatement_no"],
2024-02-08 00:52:29 +00:00
dateReceived: json["date_received"],
entryDateAssessment: json["entry_date_assessment"],
2023-07-28 02:35:36 +00:00
entryDateBy: json["entry_date_by"],
);
2024-02-08 00:52:29 +00:00
factory PropertyAssessment.fromJson2(Map<String, dynamic> json) =>
PropertyAssessment(
id: json["id"],
bldgapprDetailsId: json["bldgapprDetailsId"],
actualUse: json["actualUse"],
marketValue: json["marketValue"],
assessmentLevel: json["assessmentLevel"],
assessedValue: json["assessedValue"],
taxable: json["taxable"],
exempt: json["exempt"],
qtr: json["qtr"],
yr: json["yr"],
appraisedbyName: json["appraisedbyName"],
appraisedbyDate: json["appraisedbyDate"],
recommendapprName: json["recommendapprName"],
recommendapprDate: json["recommendapprDate"],
approvedbyName: json["approvedbyName"],
memoranda: json["memoranda"],
swornstatementNo: json["swornstatementNo"],
dateReceived: json["dateReceived"],
entryDateAssessment: json["entryDateAssessment"],
entryDateBy: json["entryDateBy"],
);
2023-07-28 02:35:36 +00:00
Map<String, dynamic> toJson() => {
"id": id,
"bldgappr_details_id": bldgapprDetailsId,
"actual_use": actualUse,
"market_value": marketValue,
"assessment_level": assessmentLevel,
"assessed_value": assessedValue,
"taxable": taxable,
"exempt": exempt,
"qtr": qtr,
"yr": yr,
"appraisedby_name": appraisedbyName,
2024-02-08 00:52:29 +00:00
"appraisedby_date": appraisedbyDate,
2023-07-28 02:35:36 +00:00
"recommendappr_name": recommendapprName,
2024-02-08 00:52:29 +00:00
"recommendappr_date": recommendapprDate,
2023-07-28 02:35:36 +00:00
"approvedby_name": approvedbyName,
"memoranda": memoranda,
"swornstatement_no": swornstatementNo,
2024-02-08 00:52:29 +00:00
"date_received": dateReceived,
2023-07-28 02:35:36 +00:00
"entry_date_by": entryDateBy,
};
}