toJson method
Implementation
@override
Map<String, dynamic>? toJson(FloatingActionButtonThemeData? value) {
if (value == null) return null;
return <String, dynamic>{
'backgroundColor':
const NullableColorConverter().toJson(value.backgroundColor),
'disabledElevation': value.disabledElevation,
'elevation': value.elevation,
'focusColor': const NullableColorConverter().toJson(value.focusColor),
'focusElevation': value.focusElevation,
'foregroundColor':
const NullableColorConverter().toJson(value.foregroundColor),
'highlightElevation': value.highlightElevation,
'hoverColor': const NullableColorConverter().toJson(value.hoverColor),
'hoverElevation': value.hoverElevation,
'shape': const NullableShapeBorderConverter().toJson(value.shape),
'splashColor': const NullableColorConverter().toJson(value.splashColor),
};
throw 'Json_Unsuported_Value';
}