fromJson method
Implementation
@override
CupertinoTextThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return CupertinoTextThemeData(
actionTextStyle: const NullableTextStyleConverter().fromJson(
json['actionTextStyle'],
),
// @deprecated
// brightness
dateTimePickerTextStyle: const NullableTextStyleConverter().fromJson(
json['dateTimePickerTextStyle'],
),
navActionTextStyle: const NullableTextStyleConverter().fromJson(
json['navActionTextStyle'],
),
navLargeTitleTextStyle: const NullableTextStyleConverter().fromJson(
json['navLargeTitleTextStyle'],
),
navTitleTextStyle: const NullableTextStyleConverter().fromJson(
json['navTitleTextStyle'],
),
pickerTextStyle: const NullableTextStyleConverter().fromJson(
json['pickerTextStyle'],
),
primaryColor: const NullableColorConverter().fromJson(
json['primaryColor'],
) ??
CupertinoColors.systemBlue,
tabLabelTextStyle: const NullableTextStyleConverter().fromJson(
json['tabLabelTextStyle'],
),
textStyle: const NullableTextStyleConverter().fromJson(
json['textStyle'],
),
);
}