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