HanXinEncodeMode.fromJson constructor

HanXinEncodeMode.fromJson(
  1. dynamic data
)

Implementation

HanXinEncodeMode.fromJson(dynamic data) {
  switch (data) {
    case "Auto":
      value = data;
      break;
    case "Binary":
      value = data;
      break;
    case "ECI":
      value = data;
      break;
    case "Unicode":
      value = data;
      break;
    case "URI":
      value = data;
      break;
    case "Extended":
      value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}