toJson method
Implementation
Map<String, Object?> toJson() {
var direction = this.direction;
var field = this.field;
final json = <String, Object?>{};
if (direction != null) {
json[r'direction'] = direction.value;
}
json[r'field'] = field.toJson();
return json;
}