toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'fontFamily': fontFamily,
    'fontStyle': fontStyle,
    'fontVariant': fontVariant,
    'fontWeight': fontWeight,
    'fontStretch': fontStretch,
    'fontDisplay': fontDisplay,
    'unicodeRange': unicodeRange,
    'src': src,
    'platformFontFamily': platformFontFamily,
    if (fontVariationAxes != null)
      'fontVariationAxes': fontVariationAxes!.map((e) => e.toJson()).toList(),
  };
}