parse static method

ArrowTimeUnit parse(
  1. String value
)

Implementation

static ArrowTimeUnit parse(String value) => values.firstWhere(
  (unit) => unit.jsonName == value || unit.name == value,
  orElse: () => throw FormatException('Unknown time unit: $value'),
);