toJson method
Implementation
@override
Map<String, dynamic>? toJson(ChipThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'backgroundColor':
const NullableColorConverter().toJson(object.backgroundColor),
'brightness':
const NullableBrightnessConverter().toJson(object.brightness),
'checkmarkColor':
const NullableColorConverter().toJson(object.checkmarkColor),
'deleteIconColor':
const NullableColorConverter().toJson(object.deleteIconColor),
'disabledColor':
const NullableColorConverter().toJson(object.disabledColor),
'elevation': object.elevation,
'labelPadding': const NullableEdgeInsetsGeometryConverter()
.toJson(object.labelPadding as EdgeInsets?),
'labelStyle':
const NullableTextStyleConverter().toJson(object.labelStyle),
'padding': const NullableEdgeInsetsGeometryConverter()
.toJson(object.padding as EdgeInsets?),
'pressElevation': object.pressElevation,
'secondaryLabelStyle':
const NullableTextStyleConverter().toJson(object.secondaryLabelStyle),
'secondarySelectedColor':
const NullableColorConverter().toJson(object.secondarySelectedColor),
'selectedColor':
const NullableColorConverter().toJson(object.selectedColor),
'shape': const NullableShapeBorderConverter().toJson(object.shape),
'side': const NullableBorderSideConverter().toJson(object.side),
'selectedShadowColor':
const NullableColorConverter().toJson(object.selectedShadowColor),
'shadowColor': const NullableColorConverter().toJson(object.shadowColor),
'showCheckmark': object.showCheckmark,
};
}