toJson method
Implementation
@override
Map<String, dynamic>? toJson(MaterialStateProperty<BorderSide?>? object) {
if (object == null) return null;
return {
'disabled': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.disabled})),
'dragged': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.dragged})),
'empty': const NullableBorderSideConverter().toJson(object.resolve({})),
'error': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.error})),
'focused': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.focused})),
'hovered': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.hovered})),
'pressed': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.pressed})),
'selected': const NullableBorderSideConverter()
.toJson(object.resolve({MaterialState.selected})),
};
}