|
|
|
@ -1,16 +1,19 @@
|
|
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
|
part 'exclude_phone_model.g.dart';
|
|
|
|
|
|
|
|
|
|
part 'exclude_phone_model.g.dart';
|
|
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
|
class ExcludePhoneModel extends Equatable{
|
|
|
|
|
class ExcludePhoneModel extends Equatable {
|
|
|
|
|
final int id;
|
|
|
|
|
final String phone;
|
|
|
|
|
final String remark;
|
|
|
|
|
final String address;
|
|
|
|
|
factory ExcludePhoneModel.fromJson(Map<String, dynamic> json) =>_$ExcludePhoneModelFromJson(json);
|
|
|
|
|
Map<String,dynamic> toJson()=> _$ExcludePhoneModelToJson(this);
|
|
|
|
|
|
|
|
|
|
factory ExcludePhoneModel.fromJson(Map<String, dynamic> json) =>
|
|
|
|
|
_$ExcludePhoneModelFromJson(json);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$ExcludePhoneModelToJson(this);
|
|
|
|
|
|
|
|
|
|
const ExcludePhoneModel({
|
|
|
|
|
required this.id,
|
|
|
|
@ -20,5 +23,22 @@ class ExcludePhoneModel extends Equatable{
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
List<Object?> get props => [id,phone,remark,address];
|
|
|
|
|
List<Object?> get props => [id, phone, remark, address];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
|
class Exclude extends Equatable {
|
|
|
|
|
final String phone;
|
|
|
|
|
final String remark;
|
|
|
|
|
|
|
|
|
|
factory Exclude.fromJson(Map<String, dynamic> json) =>
|
|
|
|
|
_$ExcludeFromJson(json);
|
|
|
|
|
Map<String, dynamic> toJson() => _$ExcludeToJson(this);
|
|
|
|
|
@override
|
|
|
|
|
List<Object?> get props => [phone, remark];
|
|
|
|
|
|
|
|
|
|
const Exclude({
|
|
|
|
|
required this.phone,
|
|
|
|
|
required this.remark,
|
|
|
|
|
});
|
|
|
|
|
}
|