toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.actor != null) {
    json[r'actor'] = this.actor;
  } else {
    json[r'actor'] = null;
  }
  if (this.direction != null) {
    json[r'direction'] = this.direction;
  } else {
    json[r'direction'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.kind != null) {
    json[r'kind'] = this.kind;
  } else {
    json[r'kind'] = null;
  }
  if (this.source_ != null) {
    json[r'source'] = this.source_;
  } else {
    json[r'source'] = null;
  }
  if (this.target != null) {
    json[r'target'] = this.target;
  } else {
    json[r'target'] = null;
  }
  if (this.trigger != null) {
    json[r'trigger'] = this.trigger;
  } else {
    json[r'trigger'] = null;
  }
  return json;
}