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.
25 lines
640 B
25 lines
640 B
import 'package:huixiang/data/preferential.dart'; |
|
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/channels.g.dart'; |
|
import 'dart:convert'; |
|
export 'package:huixiang/generated/json/channels.g.dart'; |
|
|
|
@JsonSerializable() |
|
class Channels { |
|
|
|
@JSONField(name: "channels") |
|
List<String>? channel = []; |
|
bool? isOpen = false; |
|
List<PreferentialList>? preferentialList = []; |
|
|
|
Channels(); |
|
|
|
factory Channels.fromJson(Map<String, dynamic> json) => $ChannelsFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $ChannelsToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |