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_echo_model.dart

29 lines
677 B

import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
3 years ago
part 'lease_echo_model.g.dart';
@JsonSerializable()
class LeaseEchoModel extends Equatable {
final String? name;
final num? sex;
final String tel;
final String? idNumber;
3 years ago
LeaseEchoModel({
required this.name,
required this.sex,
required this.tel,
required this.idNumber,
});
3 years ago
factory LeaseEchoModel.fromJson(Map<String, dynamic> json) =>
_$LeaseEchoModelFromJson(json);
factory LeaseEchoModel.fail() =>
LeaseEchoModel(name: '', sex: 0, tel: '', idNumber: '');
@override
List<Object?> get props => [name, sex, tel, idNumber];
}