toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  if (token != null) 'token': token,
  'fontFamily': fontFamily,
  'fontSize': fontSize,
  'fontWeight': fontWeight,
  if (italic) 'italic': true,
  'color': color.toJson(),
  if (lineHeight != null) 'lineHeight': lineHeight,
  if (letterSpacing != 0) 'letterSpacing': letterSpacing,
};