fromJson static method

FFontWeight fromJson(
  1. String json
)

Returns a FFontWeight from Json

Implementation

static FFontWeight fromJson(final String json) {
  try {
    return FFontWeight(
      weight: _convertJsonToValue(json),
    );
  } catch (e) {
    return const FFontWeight();
  }
}