toJson method
Implementation
@override
Map<String, dynamic>? toJson(TextTheme? object) {
if (object == null) return null;
return <String, dynamic>{
'bodyText1': const NullableTextStyleConverter().toJson(object.bodyText1),
'bodyText2': const NullableTextStyleConverter().toJson(object.bodyText2),
'button': const NullableTextStyleConverter().toJson(object.button),
'caption': const NullableTextStyleConverter().toJson(object.caption),
'headline1': const NullableTextStyleConverter().toJson(object.headline1),
'headline2': const NullableTextStyleConverter().toJson(object.headline2),
'headline3': const NullableTextStyleConverter().toJson(object.headline3),
'headline4': const NullableTextStyleConverter().toJson(object.headline4),
'headline5': const NullableTextStyleConverter().toJson(object.headline5),
'headline6': const NullableTextStyleConverter().toJson(object.headline6),
'overline': const NullableTextStyleConverter().toJson(object.overline),
'subtitle1': const NullableTextStyleConverter().toJson(object.subtitle1),
'subtitle2': const NullableTextStyleConverter().toJson(object.subtitle2),
};
}