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.
|
|
|
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 isChecked;
|
|
|
|
factory ContantListModel.fromJson(Map<String, dynamic> json) =>_$ContantListModelFromJson(json);
|
|
|
|
|
|
|
|
|
|
|
|
const ContantListModel({
|
|
|
|
required this.id,
|
|
|
|
required this.content,
|
|
|
|
required this.isChecked,
|
|
|
|
});
|
|
|
|
@override
|
|
|
|
List<Object?> get props => [id,content,isChecked];
|
|
|
|
}
|