toJson method
Implementation
@override
Map<String, dynamic>? toJson(DialogTheme? object) {
if (object == null) return null;
return <String, dynamic>{
'backgroundColor':
const NullableColorConverter().toJson(object.backgroundColor),
'contentTextStyle':
const NullableTextStyleConverter().toJson(object.contentTextStyle),
'elevation': object.elevation,
'shape': const NullableShapeBorderConverter().toJson(object.shape),
'titleTextStyle':
const NullableTextStyleConverter().toJson(object.titleTextStyle),
};
}