fromJson method

  1. @override
Typography? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

@override
Typography? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return Typography.material2018(
    black: const NullableTextThemeConverter().fromJson(
      json['black'],
    ),
    dense: const NullableTextThemeConverter().fromJson(
      json['dense'],
    ),
    englishLike: const NullableTextThemeConverter().fromJson(
      json['englishLike'],
    ),
    platform: const NullableTargetPlatformConverter().fromJson(
      json['platform'],
    ),
    tall: const NullableTextThemeConverter().fromJson(
      json['tall'],
    ),
    white: const NullableTextThemeConverter().fromJson(
      json['white'],
    ),
  );
}