toJson method
Implementation
@override
String? toJson(VerticalDirection? object) {
if (object == null) return null;
switch (object) {
case VerticalDirection.down:
return 'down';
case VerticalDirection.up:
return 'up';
}
}
@override
String? toJson(VerticalDirection? object) {
if (object == null) return null;
switch (object) {
case VerticalDirection.down:
return 'down';
case VerticalDirection.up:
return 'up';
}
}