ECIEncodings.fromJson constructor

ECIEncodings.fromJson(
  1. dynamic data
)

Implementation

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