toJson method
Implementation
@override
Map<String, dynamic>? toJson(ButtonBarThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'alignment':
const NullableMainAxisAlignmentConverter().toJson(object.alignment),
'buttonAlignedDropdown': object.buttonAlignedDropdown,
'buttonHeight': object.buttonHeight,
'buttonMinWidth': object.buttonMinWidth,
'buttonPadding': const NullableEdgeInsetsGeometryConverter()
.toJson(object.buttonPadding as EdgeInsets?),
'buttonTextTheme': const NullableButtonTextThemeConverter()
.toJson(object.buttonTextTheme),
'layoutBehavior': const NullableButtonBarLayoutBehaviorConverter()
.toJson(object.layoutBehavior),
'mainAxisSize':
const NullableMainAxisSizeConverter().toJson(object.mainAxisSize),
'overflowDirection': const NullableVerticalDirectionConverter()
.toJson(object.overflowDirection),
};
}