You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
470 B
Dart
29 lines
470 B
Dart
class NotificationChannel {
|
|
final int? id;
|
|
final String? name;
|
|
final int? value;
|
|
|
|
NotificationChannel({
|
|
this.id,
|
|
this.name,
|
|
this.value,
|
|
});
|
|
|
|
factory NotificationChannel.fromJson(Map<String, dynamic> json) {
|
|
return NotificationChannel(
|
|
id: json['id'],
|
|
name: json['name'],
|
|
value: json['value'],
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'id': id,
|
|
'name': name,
|
|
'value': value,
|
|
};
|
|
}
|
|
}
|
|
|