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.
26 lines
674 B
26 lines
674 B
import 'package:equatable/equatable.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
part 'lease_echo_model.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class LeaseEchoModel extends Equatable {
|
|
final String? name;
|
|
final num? sex;
|
|
final String tel;
|
|
final String? idNumber;
|
|
LeaseEchoModel({
|
|
required this.name,
|
|
required this.sex,
|
|
required this.tel,
|
|
required this.idNumber,
|
|
});
|
|
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];
|
|
}
|