2024-02-08 00:52:29 +00:00
|
|
|
// 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? bldgType;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String? structType;
|
2024-02-08 00:52:29 +00:00
|
|
|
final String? description;
|
|
|
|
final String? actualUse;
|
|
|
|
final String? floorCount;
|
|
|
|
final String? bldgArea;
|
|
|
|
final String? unitValue;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String? buccPercentage;
|
2024-02-08 00:52:29 +00:00
|
|
|
final String? depRate;
|
|
|
|
final String? marketValue;
|
|
|
|
final String? depAmount;
|
|
|
|
final String? adjustedMarketValue;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String? genCode;
|
2024-02-08 00:52:29 +00:00
|
|
|
|
|
|
|
BldgAndStructure({
|
|
|
|
this.id,
|
|
|
|
this.bldgapprDetailsId,
|
|
|
|
this.bldgType,
|
2024-03-21 05:47:57 +00:00
|
|
|
this.structType,
|
2024-02-08 00:52:29 +00:00
|
|
|
this.description,
|
|
|
|
this.actualUse,
|
|
|
|
this.floorCount,
|
|
|
|
this.bldgArea,
|
|
|
|
this.unitValue,
|
2024-03-21 05:47:57 +00:00
|
|
|
this.buccPercentage,
|
2024-02-08 00:52:29 +00:00
|
|
|
this.depRate,
|
|
|
|
this.marketValue,
|
|
|
|
this.depAmount,
|
|
|
|
this.adjustedMarketValue,
|
2024-03-21 05:47:57 +00:00
|
|
|
this.genCode,
|
2024-02-08 00:52:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
BldgAndStructure copy({
|
|
|
|
int? id,
|
|
|
|
int? bldgapprDetailsId,
|
|
|
|
String? bldgType,
|
2024-03-21 05:47:57 +00:00
|
|
|
String? structType,
|
2024-02-08 00:52:29 +00:00
|
|
|
String? description,
|
|
|
|
String? actualUse,
|
|
|
|
String? floorCount,
|
|
|
|
String? bldgArea,
|
|
|
|
String? unitValue,
|
2024-03-21 05:47:57 +00:00
|
|
|
String? buccPercentage,
|
2024-02-08 00:52:29 +00:00
|
|
|
String? depRate,
|
|
|
|
String? marketValue,
|
|
|
|
String? depAmount,
|
|
|
|
String? adjustedMarketValue,
|
2024-03-21 05:47:57 +00:00
|
|
|
String? genCode,
|
2024-02-08 00:52:29 +00:00
|
|
|
}) =>
|
|
|
|
BldgAndStructure(
|
|
|
|
id: id ?? this.id,
|
|
|
|
bldgapprDetailsId: bldgapprDetailsId ?? this.bldgapprDetailsId,
|
|
|
|
bldgType: bldgType ?? this.bldgType,
|
2024-03-21 05:47:57 +00:00
|
|
|
structType: structType ?? this.structType,
|
2024-02-08 00:52:29 +00:00
|
|
|
description: description ?? this.description,
|
|
|
|
actualUse: actualUse ?? this.actualUse,
|
|
|
|
floorCount: floorCount ?? this.floorCount,
|
|
|
|
bldgArea: bldgArea ?? this.bldgArea,
|
|
|
|
unitValue: unitValue ?? this.unitValue,
|
2024-03-21 05:47:57 +00:00
|
|
|
buccPercentage: buccPercentage ?? this.buccPercentage,
|
2024-02-08 00:52:29 +00:00
|
|
|
depRate: depRate ?? this.depRate,
|
|
|
|
marketValue: marketValue ?? this.marketValue,
|
|
|
|
depAmount: depAmount ?? this.depAmount,
|
|
|
|
adjustedMarketValue: adjustedMarketValue ?? this.adjustedMarketValue,
|
2024-03-21 05:47:57 +00:00
|
|
|
genCode: genCode ?? this.genCode,
|
2024-02-08 00:52:29 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
factory BldgAndStructure.fromJson(Map<String, dynamic> json) =>
|
|
|
|
BldgAndStructure(
|
|
|
|
id: json["id"],
|
|
|
|
bldgapprDetailsId: json["bldgapprDetailsId"],
|
|
|
|
bldgType: json["bldgType"],
|
2024-03-21 05:47:57 +00:00
|
|
|
structType: json["structType"],
|
2024-02-08 00:52:29 +00:00
|
|
|
description: json["description"],
|
|
|
|
actualUse: json["actualUse"],
|
|
|
|
floorCount: json["floorCount"],
|
|
|
|
bldgArea: json["bldgArea"],
|
|
|
|
unitValue: json["unitValue"],
|
2024-03-21 05:47:57 +00:00
|
|
|
buccPercentage: json["buccPercentage"],
|
2024-02-08 00:52:29 +00:00
|
|
|
depRate: json["depRate"],
|
|
|
|
marketValue: json["marketValue"],
|
|
|
|
depAmount: json["depAmount"],
|
|
|
|
adjustedMarketValue: json["adjustedMarketValue"],
|
2024-03-21 05:47:57 +00:00
|
|
|
genCode: json["gen_code"],
|
2024-02-08 00:52:29 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"id": id,
|
2024-03-21 05:47:57 +00:00
|
|
|
"bldgappr_details_id": bldgapprDetailsId,
|
|
|
|
"bldg_type": bldgType,
|
|
|
|
"struct_type": structType,
|
2024-02-08 00:52:29 +00:00
|
|
|
"description": description,
|
2024-03-21 05:47:57 +00:00
|
|
|
"actual_use": actualUse,
|
|
|
|
"floor_count": floorCount,
|
|
|
|
"bldg_area": bldgArea,
|
|
|
|
"unit_value": unitValue,
|
|
|
|
"bucc_percentage": buccPercentage,
|
|
|
|
"dep_rate": depRate,
|
|
|
|
"market_value": marketValue,
|
|
|
|
"dep_amount": depAmount,
|
|
|
|
"adjusted_market_value": adjustedMarketValue,
|
|
|
|
"gen_code": genCode,
|
2024-02-08 00:52:29 +00:00
|
|
|
};
|
|
|
|
}
|