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