toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.direction != null) {
    json[r'direction'] = this.direction;
  } else {
    json[r'direction'] = null;
  }
  if (this.field != null) {
    json[r'field'] = this.field;
  } else {
    json[r'field'] = null;
  }
  return json;
}