You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
848 B
35 lines
848 B
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'my_house_model.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class MyHouseModel {
|
|
final int id;
|
|
final String addressName;
|
|
final String communityName;
|
|
final String buildingName;
|
|
final String estateName;
|
|
final String unitName;
|
|
final String manageEstateTypeName;
|
|
final int identity;
|
|
final String? name;
|
|
final String tel;
|
|
final int isDefault;
|
|
factory MyHouseModel.fromJson(Map<String, dynamic> json) =>
|
|
_$MyHouseModelFromJson(json);
|
|
|
|
const MyHouseModel({
|
|
required this.id,
|
|
required this.addressName,
|
|
required this.communityName,
|
|
required this.buildingName,
|
|
required this.estateName,
|
|
required this.unitName,
|
|
required this.manageEstateTypeName,
|
|
required this.identity,
|
|
this.name,
|
|
required this.tel,
|
|
required this.isDefault,
|
|
});
|
|
}
|