toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var id = this.id;
  var subject = this.subject;
  var operation = this.operation;
  var links = this.links;

  final json = <String, Object?>{};
  json[r'id'] = id;
  json[r'subject'] = subject.toJson();
  json[r'operation'] = operation.toJson();
  if (links != null) {
    json[r'_links'] = links.toJson();
  }
  return json;
}