toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['code'] = this.code;
  data['severity'] = this.severity;
  data['type'] = this.type;
  if (this.location != null) {
    data['location'] = this.location!.toJson();
  }
  data['problemMessage'] = this.problemMessage;
  data['correctionMessage'] = this.correctionMessage;
  data['documentation'] = this.documentation;
  return data;
}