MacroCharacter.fromJson constructor

MacroCharacter.fromJson(
  1. dynamic data
)

Implementation

MacroCharacter.fromJson(dynamic data) {
  switch (data) {
    case "None":
      value = data;
      break;
    case "Macro05":
      value = data;
      break;
    case "Macro06":
      value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}