toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var id = this.id;
  var inwardIssue = this.inwardIssue;
  var outwardIssue = this.outwardIssue;
  var self = this.self;
  var type = this.type;

  final json = <String, Object?>{};
  if (id != null) {
    json[r'id'] = id;
  }
  json[r'inwardIssue'] = inwardIssue.toJson();
  json[r'outwardIssue'] = outwardIssue.toJson();
  if (self != null) {
    json[r'self'] = self;
  }
  json[r'type'] = type.toJson();
  return json;
}