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