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