132 lines
3.9 KiB
Dart
132 lines
3.9 KiB
Dart
|
// To parse this JSON data, do
|
||
|
//
|
||
|
// final bldgAndStructure = bldgAndStructureFromJson(jsonString);
|
||
|
|
||
|
import 'dart:convert';
|
||
|
|
||
|
BldgAndStructure bldgAndStructureFromJson(String str) =>
|
||
|
BldgAndStructure.fromJson(json.decode(str));
|
||
|
|
||
|
String bldgAndStructureToJson(BldgAndStructure data) =>
|
||
|
json.encode(data.toJson());
|
||
|
|
||
|
class BldgAndStructure {
|
||
|
final int? id;
|
||
|
final int? bldgapprDetailsId;
|
||
|
final String? assessedById;
|
||
|
final String? assessedByName;
|
||
|
final String? dateCreated;
|
||
|
final String? dateModified;
|
||
|
final String? bldgType;
|
||
|
final String? strucType;
|
||
|
final String? description;
|
||
|
final String? actualUse;
|
||
|
final String? floorCount;
|
||
|
final String? bldgArea;
|
||
|
final String? unitValue;
|
||
|
final String? depRate;
|
||
|
final String? marketValue;
|
||
|
final String? depAmount;
|
||
|
final String? adjustedMarketValue;
|
||
|
|
||
|
BldgAndStructure({
|
||
|
this.id,
|
||
|
this.bldgapprDetailsId,
|
||
|
this.assessedById,
|
||
|
this.assessedByName,
|
||
|
this.dateCreated,
|
||
|
this.dateModified,
|
||
|
this.bldgType,
|
||
|
this.strucType,
|
||
|
this.description,
|
||
|
this.actualUse,
|
||
|
this.floorCount,
|
||
|
this.bldgArea,
|
||
|
this.unitValue,
|
||
|
this.depRate,
|
||
|
this.marketValue,
|
||
|
this.depAmount,
|
||
|
this.adjustedMarketValue,
|
||
|
});
|
||
|
|
||
|
BldgAndStructure copy({
|
||
|
int? id,
|
||
|
int? bldgapprDetailsId,
|
||
|
String? assessedById,
|
||
|
String? assessedByName,
|
||
|
String? dateCreated,
|
||
|
String? dateModified,
|
||
|
String? bldgType,
|
||
|
String? strucType,
|
||
|
String? description,
|
||
|
String? actualUse,
|
||
|
String? floorCount,
|
||
|
String? bldgArea,
|
||
|
String? unitValue,
|
||
|
String? depRate,
|
||
|
String? marketValue,
|
||
|
String? depAmount,
|
||
|
String? adjustedMarketValue,
|
||
|
}) =>
|
||
|
BldgAndStructure(
|
||
|
id: id ?? this.id,
|
||
|
bldgapprDetailsId: bldgapprDetailsId ?? this.bldgapprDetailsId,
|
||
|
assessedById: assessedById ?? this.assessedById,
|
||
|
assessedByName: assessedByName ?? this.assessedByName,
|
||
|
dateCreated: dateCreated ?? this.dateCreated,
|
||
|
dateModified: dateModified ?? this.dateModified,
|
||
|
bldgType: bldgType ?? this.bldgType,
|
||
|
strucType: strucType ?? this.strucType,
|
||
|
description: description ?? this.description,
|
||
|
actualUse: actualUse ?? this.actualUse,
|
||
|
floorCount: floorCount ?? this.floorCount,
|
||
|
bldgArea: bldgArea ?? this.bldgArea,
|
||
|
unitValue: unitValue ?? this.unitValue,
|
||
|
depRate: depRate ?? this.depRate,
|
||
|
marketValue: marketValue ?? this.marketValue,
|
||
|
depAmount: depAmount ?? this.depAmount,
|
||
|
adjustedMarketValue: adjustedMarketValue ?? this.adjustedMarketValue,
|
||
|
);
|
||
|
|
||
|
factory BldgAndStructure.fromJson(Map<String, dynamic> json) =>
|
||
|
BldgAndStructure(
|
||
|
id: json["id"],
|
||
|
bldgapprDetailsId: json["bldgapprDetailsId"],
|
||
|
assessedById: json["assessedById"],
|
||
|
assessedByName: json["assessedByName"],
|
||
|
dateCreated: json["dateCreated"],
|
||
|
dateModified: json["dateModified"],
|
||
|
bldgType: json["bldgType"],
|
||
|
strucType: json["strucType"],
|
||
|
description: json["description"],
|
||
|
actualUse: json["actualUse"],
|
||
|
floorCount: json["floorCount"],
|
||
|
bldgArea: json["bldgArea"],
|
||
|
unitValue: json["unitValue"],
|
||
|
depRate: json["depRate"],
|
||
|
marketValue: json["marketValue"],
|
||
|
depAmount: json["depAmount"],
|
||
|
adjustedMarketValue: json["adjustedMarketValue"],
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> toJson() => {
|
||
|
"id": id,
|
||
|
"bldgapprDetailsId": bldgapprDetailsId,
|
||
|
"assessedById": assessedById,
|
||
|
"assessedByName": assessedByName,
|
||
|
"dateCreated": dateCreated,
|
||
|
"dateModified": dateModified,
|
||
|
"bldgType": bldgType,
|
||
|
"strucType": strucType,
|
||
|
"description": description,
|
||
|
"actualUse": actualUse,
|
||
|
"floorCount": floorCount,
|
||
|
"bldgArea": bldgArea,
|
||
|
"unitValue": unitValue,
|
||
|
"depRate": depRate,
|
||
|
"marketValue": marketValue,
|
||
|
"depAmount": depAmount,
|
||
|
"adjustedMarketValue": adjustedMarketValue,
|
||
|
};
|
||
|
}
|