fromJson static method

FontFormat fromJson(
  1. String json
)

Implementation

static FontFormat fromJson(String json) => FontFormat.values.firstWhere(
      (e) => e.value == json,
      orElse: () => throw ArgumentError('Unknown FontFormat: $json'),
    );