import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; part 'state_model.g.dart'; @JsonSerializable() class StateModel extends Equatable{ bool sms; bool phone; factory StateModel.fromJson(Map json) =>_$StateModelFromJson(json); StateModel({ required this.sms, required this.phone, }); @override List get props => [sms,phone]; }