fromJson method
Implementation
@override
CupertinoThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return CupertinoThemeData(
barBackgroundColor: const NullableColorConverter().fromJson(
json['barBackgroundColor'],
),
brightness: const NullableBrightnessConverter().fromJson(
json['brightness'],
),
primaryColor: const NullableColorConverter().fromJson(
json['primaryColor'],
),
primaryContrastingColor: const NullableColorConverter().fromJson(
json['primaryContrastingColor'],
),
scaffoldBackgroundColor: const NullableColorConverter().fromJson(
json['scaffoldBackgroundColor'],
),
textTheme: const NullableCupertinoTextThemeDataConverter().fromJson(
json['textTheme'],
),
);
}