fromValue static method

ContentType fromValue(
  1. String value
)

Implementation

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