toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var application = this.application;
  var globalId = this.globalId;
  var object = this.object;
  var relationship = this.relationship;

  final json = <String, Object?>{};
  if (application != null) {
    json[r'application'] = application.toJson();
  }
  if (globalId != null) {
    json[r'globalId'] = globalId;
  }
  json[r'object'] = object.toJson();
  if (relationship != null) {
    json[r'relationship'] = relationship;
  }
  return json;
}