WeightedFontFamily.fromJson constructor

WeightedFontFamily.fromJson(
  1. Map json_
)

Implementation

WeightedFontFamily.fromJson(core.Map json_)
    : this(
        fontFamily: json_.containsKey('fontFamily')
            ? json_['fontFamily'] as core.String
            : null,
        weight:
            json_.containsKey('weight') ? json_['weight'] as core.int : null,
      );