PatchFormat.fromJson constructor
PatchFormat.fromJson(
- dynamic data
Implementation
PatchFormat.fromJson(dynamic data) {
switch (data) {
case "PatchOnly":
value = data;
break;
case "A4":
value = data;
break;
case "A4_LANDSCAPE":
value = data;
break;
case "US_Letter":
value = data;
break;
case "US_Letter_LANDSCAPE":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}