toJson method
Implementation
@override
Map<String, dynamic>? toJson(AppBarTheme? object) {
if (object == null) return null;
return <String, dynamic>{
'actionsIconTheme': const NullableIconThemeDataConverter()
.toJson(object.actionsIconTheme),
'backgroundColor':
const NullableColorConverter().toJson(object.backgroundColor) ??
const NullableColorConverter().toJson(object.color),
'backwardsCompatibility': object.backwardsCompatibility,
'brightness':
const NullableBrightnessConverter().toJson(object.brightness),
'centerTitle': object.centerTitle,
'elevation': object.elevation,
'foregroundColor':
const NullableColorConverter().toJson(object.foregroundColor),
'iconTheme':
const NullableIconThemeDataConverter().toJson(object.iconTheme),
'shadowColor': const NullableColorConverter().toJson(object.shadowColor),
'systemOverlayStyle': const NullableSystemUiOverlayStyleConverter()
.toJson(object.systemOverlayStyle),
'textTheme': const NullableTextThemeConverter().toJson(object.textTheme),
'titleSpacing': object.titleSpacing,
'titleTextStyle':
const NullableTextStyleConverter().toJson(object.titleTextStyle),
'toolbarTextStyle':
const NullableTextStyleConverter().toJson(object.toolbarTextStyle),
};
}