XrayStringList.fromJson constructor
XrayStringList.fromJson(
- Object? json
Implementation
factory XrayStringList.fromJson(Object? json) {
return switch (json) {
final List<dynamic> list => XrayStringList(list.cast<String>()),
final String value => XrayStringList(value.split(',')),
_ => throw FormatException('unknown format of a string list: $json'),
};
}