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.
project_telephony/lib/model/exclude_phone_model.dart

45 lines
1.0 KiB

import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
2 years ago
part 'exclude_phone_model.g.dart';
@JsonSerializable()
2 years ago
class ExcludePhoneModel extends Equatable {
final int id;
final String phone;
final String remark;
2 years ago
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,
2 years ago
required this.address,
});
@override
2 years ago
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,
});
}