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