toJson method

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

Implementation

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

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