import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.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 json) =>_$ContantListModelFromJson(json); const ContantListModel({ required this.id, required this.content, required this.isChecked, }); @override List get props => [id,content,isChecked]; }