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