toJson method
Implementation
@override
Map<String, dynamic>? toJson(ToggleButtonsThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'borderColor': const NullableColorConverter().toJson(object.borderColor),
'borderRadius':
const NullableBorderRadiusConverter().toJson(object.borderRadius),
'borderWidth': object.borderWidth,
'color': const NullableColorConverter().toJson(object.color),
'constraints':
const NullableBoxConstraintsConverter().toJson(object.constraints),
'disabledBorderColor':
const NullableColorConverter().toJson(object.disabledBorderColor),
'disabledColor':
const NullableColorConverter().toJson(object.disabledColor),
'fillColor': const NullableColorConverter().toJson(object.fillColor),
'focusColor': const NullableColorConverter().toJson(object.focusColor),
'highlightColor':
const NullableColorConverter().toJson(object.highlightColor),
'hoverColor': const NullableColorConverter().toJson(object.hoverColor),
'selectedBorderColor':
const NullableColorConverter().toJson(object.selectedBorderColor),
'selectedColor':
const NullableColorConverter().toJson(object.selectedColor),
'splashColor': const NullableColorConverter().toJson(object.splashColor),
'textStyle': const NullableTextStyleConverter().toJson(object.textStyle),
};
}