AutoSizeMode.fromJson constructor

AutoSizeMode.fromJson(
  1. dynamic data
)

Implementation

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