parent
61e62e1e62
commit
3f59e7d3f1
@ -1,22 +1,44 @@
|
||||
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 {
|
||||
final int id;
|
||||
final String phone;
|
||||
final String remark;
|
||||
factory ExcludePhoneModel.fromJson(Map<String, dynamic> json) =>_$ExcludePhoneModelFromJson(json);
|
||||
final String address;
|
||||
|
||||
factory ExcludePhoneModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$ExcludePhoneModelFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ExcludePhoneModelToJson(this);
|
||||
|
||||
const ExcludePhoneModel({
|
||||
required this.id,
|
||||
required this.phone,
|
||||
required this.remark,
|
||||
required this.address,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [id,phone,remark];
|
||||
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,
|
||||
});
|
||||
}
|
Loading…
Reference in new issue