AvailableGraphicsUnit.fromJson constructor

AvailableGraphicsUnit.fromJson(
  1. dynamic data
)

Implementation

AvailableGraphicsUnit.fromJson(dynamic data) {
  switch (data) {
    case "Pixel":
      value = data;
      break;
    case "Point":
      value = data;
      break;
    case "Inch":
      value = data;
      break;
    case "Millimeter":
      value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}