fromJson static method

WarningKind fromJson(
  1. String value
)

Implementation

static WarningKind fromJson(String value) =>
    WarningKind.values.firstWhere((e) => e.name == value);