toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.fingerprint != null) {
    json[r'fingerprint'] = this.fingerprint;
  } else {
    json[r'fingerprint'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.line != null) {
    json[r'line'] = this.line;
  } else {
    json[r'line'] = null;
  }
  if (this.path != null) {
    json[r'path'] = this.path;
  } else {
    json[r'path'] = null;
  }
  if (this.preview != null) {
    json[r'preview'] = this.preview;
  } else {
    json[r'preview'] = null;
  }
  if (this.ruleId != null) {
    json[r'ruleId'] = this.ruleId;
  } else {
    json[r'ruleId'] = null;
  }
  if (this.ruleName != null) {
    json[r'ruleName'] = this.ruleName;
  } else {
    json[r'ruleName'] = null;
  }
  if (this.scanId != null) {
    json[r'scanId'] = this.scanId;
  } else {
    json[r'scanId'] = null;
  }
  if (this.severity != null) {
    json[r'severity'] = this.severity;
  } else {
    json[r'severity'] = null;
  }
  return json;
}