toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var copyAttachments = this.copyAttachments;
  var copyPermissions = this.copyPermissions;
  var copyProperties = this.copyProperties;
  var copyLabels = this.copyLabels;
  var copyCustomContents = this.copyCustomContents;
  var copyDescendants = this.copyDescendants;
  var destinationPageId = this.destinationPageId;
  var titleOptions = this.titleOptions;

  final json = <String, Object?>{};
  json[r'copyAttachments'] = copyAttachments;
  json[r'copyPermissions'] = copyPermissions;
  json[r'copyProperties'] = copyProperties;
  json[r'copyLabels'] = copyLabels;
  json[r'copyCustomContents'] = copyCustomContents;
  json[r'copyDescendants'] = copyDescendants;
  json[r'destinationPageId'] = destinationPageId;
  if (titleOptions != null) {
    json[r'titleOptions'] = titleOptions.toJson();
  }
  return json;
}