toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.action != null) {
    json[r'action'] = this.action;
  } else {
    json[r'action'] = null;
  }
  if (this.actor != null) {
    json[r'actor'] = this.actor;
  } else {
    json[r'actor'] = null;
  }
  if (this.at != null) {
    json[r'at'] = this.at;
  } else {
    json[r'at'] = null;
  }
  if (this.detail != null) {
    json[r'detail'] = this.detail;
  } else {
    json[r'detail'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.key != null) {
    json[r'key'] = this.key;
  } else {
    json[r'key'] = null;
  }
  return json;
}