toJson method
Implementation
@override
Map<String, dynamic>? toJson(BottomNavigationBarThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'backgroundColor':
const NullableColorConverter().toJson(object.backgroundColor),
'elevation': object.elevation,
'selectedIconTheme': const NullableIconThemeDataConverter()
.toJson(object.selectedIconTheme),
'selectedItemColor':
const NullableColorConverter().toJson(object.selectedItemColor),
'selectedLabelStyle':
const NullableTextStyleConverter().toJson(object.selectedLabelStyle),
'showSelectedLabels': object.showSelectedLabels,
'showUnselectedLabels': object.showUnselectedLabels,
'type':
const NullableBottomNavigationBarTypeConverter().toJson(object.type),
'unselectedIconTheme': const NullableIconThemeDataConverter()
.toJson(object.unselectedIconTheme),
'unselectedItemColor':
const NullableColorConverter().toJson(object.unselectedItemColor),
'unselectedLabelStyle': const NullableTextStyleConverter()
.toJson(object.unselectedLabelStyle),
};
}