ECIEncodings.fromJson constructor
ECIEncodings.fromJson(
- dynamic data
Creates a ECIEncodings instance from a JSON representation.
Implementation
ECIEncodings.fromJson(dynamic data) {
switch (data) {
case "NONE":
case "ISO_8859_1":
case "ISO_8859_2":
case "ISO_8859_3":
case "ISO_8859_4":
case "ISO_8859_5":
case "ISO_8859_6":
case "ISO_8859_7":
case "ISO_8859_8":
case "ISO_8859_9":
case "ISO_8859_10":
case "ISO_8859_11":
case "ISO_8859_13":
case "ISO_8859_14":
case "ISO_8859_15":
case "ISO_8859_16":
case "Shift_JIS":
case "Win1250":
case "Win1251":
case "Win1252":
case "Win1256":
case "UTF16BE":
case "UTF8":
case "US_ASCII":
case "Big5":
case "GB18030":
case "EUC_KR":
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}