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.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = 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.payload != null) {
    json[r'payload'] = this.payload;
  } else {
    json[r'payload'] = null;
  }
  if (this.seq != null) {
    json[r'seq'] = this.seq;
  } else {
    json[r'seq'] = null;
  }
  if (this.sessionId != null) {
    json[r'sessionId'] = this.sessionId;
  } else {
    json[r'sessionId'] = null;
  }
  return json;
}