toJson method
Implementation
@override
Map<String, dynamic>? toJson(TimePickerThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'backgroundColor':
const NullableColorConverter().toJson(object.backgroundColor),
'dayPeriodBorderSide': const NullableBorderSideConverter()
.toJson(object.dayPeriodBorderSide),
'dayPeriodColor':
const NullableColorConverter().toJson(object.dayPeriodColor),
'dayPeriodShape':
const NullableShapeBorderConverter().toJson(object.dayPeriodShape),
'dayPeriodTextColor':
const NullableColorConverter().toJson(object.dayPeriodTextColor),
'dayPeriodTextStyle':
const NullableTextStyleConverter().toJson(object.dayPeriodTextStyle),
'dialBackgroundColor':
const NullableColorConverter().toJson(object.dialBackgroundColor),
'dialHandColor':
const NullableColorConverter().toJson(object.dialHandColor),
'dialTextColor':
const NullableColorConverter().toJson(object.dialTextColor),
'entryModeIconColor':
const NullableColorConverter().toJson(object.entryModeIconColor),
'helpTextStyle':
const NullableTextStyleConverter().toJson(object.helpTextStyle),
'hourMinuteColor':
const NullableColorConverter().toJson(object.hourMinuteColor),
'hourMinuteShape':
const NullableShapeBorderConverter().toJson(object.hourMinuteShape),
'hourMinuteTextColor':
const NullableColorConverter().toJson(object.hourMinuteTextColor),
'hourMinuteTextStyle':
const NullableTextStyleConverter().toJson(object.hourMinuteTextStyle),
'inputDecorationTheme': const NullableInputDecorationThemeConverter()
.toJson(object.inputDecorationTheme),
'shape': const NullableShapeBorderConverter().toJson(object.shape),
};
}