toJson method

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

Implementation

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

  return <String, dynamic>{
    'actionTextStyle':
        const NullableTextStyleConverter().toJson(object.actionTextStyle),
    'dateTimePickerTextStyle': const NullableTextStyleConverter().toJson(
      object.dateTimePickerTextStyle,
    ),
    'navActionTextStyle':
        const NullableTextStyleConverter().toJson(object.navActionTextStyle),
    'navLargeTitleTextStyle': const NullableTextStyleConverter()
        .toJson(object.navLargeTitleTextStyle),
    'navTitleTextStyle':
        const NullableTextStyleConverter().toJson(object.navTitleTextStyle),
    'pickerTextStyle':
        const NullableTextStyleConverter().toJson(object.pickerTextStyle),
    'tabLabelTextStyle':
        const NullableTextStyleConverter().toJson(object.tabLabelTextStyle),
    'textStyle': const NullableTextStyleConverter().toJson(object.textStyle),
  };
}