fromValue static method

PrimaryBodyRepresentation fromValue(
  1. String value
)

Implementation

static PrimaryBodyRepresentation fromValue(String value) =>
    values.firstWhere((e) => e.value == value,
        orElse: () => PrimaryBodyRepresentation._(value));