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