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 json) =>_$ContantListModelFromJson(json); const ContantListModel({ required this.id, required this.content, required this.is_checked, }); @override List get props => [id,content,is_checked]; }