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