core.Map<core.String, core.dynamic> toJson() => { if (fontFamily != null) 'fontFamily': fontFamily!, if (weight != null) 'weight': weight!, };