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