toJson method
Implementation
@override
Map<String, dynamic>? toJson(NavigationRailThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'backgroundColor':
const NullableColorConverter().toJson(object.backgroundColor),
'elevation': object.elevation,
'groupAlignment': object.groupAlignment,
'labelType': const NullableNavigationRailLabelTypeConverter()
.toJson(object.labelType),
'selectedIconTheme': const NullableIconThemeDataConverter()
.toJson(object.selectedIconTheme),
'selectedLabelTextStyle': const NullableTextStyleConverter().toJson(
object.selectedLabelTextStyle,
),
'unselectedIconTheme': const NullableIconThemeDataConverter()
.toJson(object.unselectedIconTheme),
'unselectedLabelTextStyle': const NullableTextStyleConverter().toJson(
object.unselectedLabelTextStyle,
),
};
}