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