toJson method
Implementation
@override
Map<String, dynamic>? toJson(ButtonThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'alignedDropdown': object.alignedDropdown,
'colorScheme':
const NullableColorSchemeConverter().toJson(object.colorScheme),
'height': object.height,
'layoutBehavior': const NullableButtonBarLayoutBehaviorConverter()
.toJson(object.layoutBehavior),
'minWidth': object.minWidth,
'padding': const NullableEdgeInsetsGeometryConverter()
.toJson(object.padding as EdgeInsets?),
'shape': const NullableShapeBorderConverter().toJson(object.shape),
'textTheme':
const NullableButtonTextThemeConverter().toJson(object.textTheme),
};
}