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.
20 lines
425 B
20 lines
425 B
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<String, dynamic> json) =>_$StateModelFromJson(json);
|
|
|
|
|
|
StateModel({
|
|
required this.sms,
|
|
required this.phone,
|
|
});
|
|
@override
|
|
List<Object?> get props => [sms,phone];
|
|
} |