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