fromJson method
Implementation
@override
TextTheme? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return TextTheme(
// @deprecated
// body1
// @deprecated
// body2
bodyText1: const NullableTextStyleConverter().fromJson(
json['bodyText1'],
),
bodyText2: const NullableTextStyleConverter().fromJson(
json['bodyText2'],
),
button: const NullableTextStyleConverter().fromJson(
json['button'],
),
caption: const NullableTextStyleConverter().fromJson(
json['caption'],
),
// @deprecated
// display1
// @deprecated
// display2
// @deprecated
// display3
// @deprecated
// display4
// @deprecated
// headline
headline1: const NullableTextStyleConverter().fromJson(
json['headline1'],
),
headline2: const NullableTextStyleConverter().fromJson(
json['headline2'],
),
headline3: const NullableTextStyleConverter().fromJson(
json['headline3'],
),
headline4: const NullableTextStyleConverter().fromJson(
json['headline4'],
),
headline5: const NullableTextStyleConverter().fromJson(
json['headline5'],
),
headline6: const NullableTextStyleConverter().fromJson(
json['headline6'],
),
overline: const NullableTextStyleConverter().fromJson(
json['overline'],
),
// @deprecated
// subhead
subtitle1: const NullableTextStyleConverter().fromJson(
json['subtitle1'],
),
subtitle2: const NullableTextStyleConverter().fromJson(
json['subtitle2'],
),
// @deprecated
// title
);
}