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 json) => _$LeaseEchoModelFromJson(json); factory LeaseEchoModel.fail() => LeaseEchoModel(name: '', sex: 0, tel: '', idNumber: ''); @override List get props => [name, sex, tel, idNumber]; }