CodeLocation.fromJson constructor

CodeLocation.fromJson(
  1. dynamic data
)

Implementation

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