passo_mobile_app/lib/model/passo/building_and_structure.dart

120 lines
3.5 KiB
Dart
Raw Normal View History

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;
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;
final String? buccPercentage;
2024-02-08 00:52:29 +00:00
final String? depRate;
final String? marketValue;
final String? depAmount;
final String? adjustedMarketValue;
final String? genCode;
2024-02-08 00:52:29 +00:00
BldgAndStructure({
this.id,
this.bldgapprDetailsId,
this.bldgType,
this.structType,
2024-02-08 00:52:29 +00:00
this.description,
this.actualUse,
this.floorCount,
this.bldgArea,
this.unitValue,
this.buccPercentage,
2024-02-08 00:52:29 +00:00
this.depRate,
this.marketValue,
this.depAmount,
this.adjustedMarketValue,
this.genCode,
2024-02-08 00:52:29 +00:00
});
BldgAndStructure copy({
int? id,
int? bldgapprDetailsId,
String? bldgType,
String? structType,
2024-02-08 00:52:29 +00:00
String? description,
String? actualUse,
String? floorCount,
String? bldgArea,
String? unitValue,
String? buccPercentage,
2024-02-08 00:52:29 +00:00
String? depRate,
String? marketValue,
String? depAmount,
String? adjustedMarketValue,
String? genCode,
2024-02-08 00:52:29 +00:00
}) =>
BldgAndStructure(
id: id ?? this.id,
bldgapprDetailsId: bldgapprDetailsId ?? this.bldgapprDetailsId,
bldgType: bldgType ?? this.bldgType,
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,
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,
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"],
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"],
buccPercentage: json["buccPercentage"],
2024-02-08 00:52:29 +00:00
depRate: json["depRate"],
marketValue: json["marketValue"],
depAmount: json["depAmount"],
adjustedMarketValue: json["adjustedMarketValue"],
genCode: json["gen_code"],
2024-02-08 00:52:29 +00:00
);
Map<String, dynamic> toJson() => {
"id": id,
"bldgappr_details_id": bldgapprDetailsId,
"bldg_type": bldgType,
"struct_type": structType,
2024-02-08 00:52:29 +00:00
"description": description,
"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
};
}