toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. Typography? value
)
override

Implementation

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

  return <String, dynamic>{
    'black': const NullableTextThemeConverter().toJson(value.black),
    'dense': const NullableTextThemeConverter().toJson(value.dense),
    'englishLike':
        const NullableTextThemeConverter().toJson(value.englishLike),
    'tall': const NullableTextThemeConverter().toJson(value.tall),
    'white': const NullableTextThemeConverter().toJson(value.white),
  };

  throw 'Json_Unsuported_Value';
}