toJson method
Implementation
@override
Map<String, dynamic>? toJson(TabBarTheme? object) {
if (object == null) return null;
return <String, dynamic>{
'indicatorSize': const NullableTabBarIndicatorSizeConverter()
.toJson(object.indicatorSize),
'labelPadding': const NullableEdgeInsetsGeometryConverter()
.toJson(object.labelPadding as EdgeInsets?),
'labelColor': const NullableColorConverter().toJson(object.labelColor),
'labelStyle':
const NullableTextStyleConverter().toJson(object.labelStyle),
'unselectedLabelColor':
const NullableColorConverter().toJson(object.unselectedLabelColor),
'unselectedLabelStyle': const NullableTextStyleConverter()
.toJson(object.unselectedLabelStyle),
};
}