toJson method

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

Implementation

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

  return <String, dynamic>{
    'indicatorSize': const NullableTabBarIndicatorSizeConverter()
        .toJson(value.indicatorSize),
    'labelPadding': const NullableEdgeInsetsGeometryConverter()
        .toJson(value.labelPadding as EdgeInsets?),
    'labelColor': const NullableColorConverter().toJson(value.labelColor),
    'labelStyle': const NullableTextStyleConverter().toJson(value.labelStyle),
    'unselectedLabelColor':
        const NullableColorConverter().toJson(value.unselectedLabelColor),
    'unselectedLabelStyle':
        const NullableTextStyleConverter().toJson(value.unselectedLabelStyle),
  };

  throw 'Json_Unsuported_Value';
}