fromJson static method

TimeUnit fromJson(
  1. String value
)

Returns the unit whose protocol name is value.

Implementation

static TimeUnit fromJson(String value) =>
    values.firstWhere((unit) => unit.json == value);