fromMap static method

Orientation fromMap(
  1. Map<String, Object> map
)

Implementation

static Orientation fromMap(Map<String, Object> map) {
  // return Orientation.values[int.parse(map['index'].toString())];
  return toEnum<Orientation>(Orientation.values, 'orientation', map);
}