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.
aku_new_community/lib/models/house/lease_detail_model.dart

92 lines
2.2 KiB

import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart';
part 'lease_detail_model.g.dart';
@JsonSerializable()
class LeaseDetailModel extends Equatable {
final int id;
final String code;
final String name;
final int sex;
final String idCard;
final String roomName;
final int type;
final String estateType;
final num rentStandard;
final num margin;
final String leaseDateStart;
final String leaseDateEnd;
final List<ImgModel>? imgUrls;
final int status;
final String? reviewerName;
final String? auditDate;
final String createName;
final String? emergencyContact;
final String? emergencyContactNumber;
final String? correspondenceAddress;
final String? workUnits;
final String? payBank;
final String? bankAccountName;
final String? bankAccount;
LeaseDetailModel({
required this.id,
required this.code,
required this.name,
required this.sex,
required this.idCard,
required this.roomName,
required this.type,
required this.estateType,
required this.rentStandard,
required this.margin,
required this.leaseDateStart,
required this.leaseDateEnd,
required this.imgUrls,
required this.status,
required this.reviewerName,
required this.auditDate,
required this.createName,
required this.emergencyContact,
required this.emergencyContactNumber,
required this.correspondenceAddress,
required this.workUnits,
required this.payBank,
required this.bankAccountName,
required this.bankAccount,
});
factory LeaseDetailModel.fromJson(Map<String, dynamic> json) =>
_$LeaseDetailModelFromJson(json);
@override
List<Object?> get props {
return [
id,
code,
name,
sex,
idCard,
roomName,
type,
estateType,
rentStandard,
margin,
leaseDateStart,
leaseDateEnd,
imgUrls,
status,
reviewerName,
auditDate,
createName,
emergencyContact,
emergencyContactNumber,
correspondenceAddress,
workUnits,
payBank,
bankAccountName,
bankAccount,
];
}
}