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 destination = this.destination;
  var pageTitle = this.pageTitle;
  var body = this.body;

  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'destination'] = destination.toJson();
  if (pageTitle != null) {
    json[r'pageTitle'] = pageTitle;
  }
  if (body != null) {
    json[r'body'] = body.toJson();
  }
  return json;
}