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.
24 lines
602 B
24 lines
602 B
2 years ago
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
import 'package:equatable/equatable.dart';
|
||
|
part 'sms_content_model.g.dart';
|
||
|
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class SmsContentModel extends Equatable{
|
||
|
final int id;
|
||
|
final String content;
|
||
|
final int isChecked;
|
||
|
|
||
|
factory SmsContentModel.fromJson(Map<String, dynamic> json) =>_$SmsContentModelFromJson(json);
|
||
|
Map<String,dynamic> toJson()=> _$SmsContentModelToJson(this);
|
||
|
|
||
|
const SmsContentModel({
|
||
|
required this.id,
|
||
|
required this.content,
|
||
|
required this.isChecked,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
List<Object?> get props => [id, content, isChecked];
|
||
|
|
||
|
}
|