CopyPageRequest.fromJson constructor
Implementation
factory CopyPageRequest.fromJson(Map<String, Object?> json) {
return CopyPageRequest(
copyAttachments: json[r'copyAttachments'] as bool? ?? false,
copyPermissions: json[r'copyPermissions'] as bool? ?? false,
copyProperties: json[r'copyProperties'] as bool? ?? false,
copyLabels: json[r'copyLabels'] as bool? ?? false,
copyCustomContents: json[r'copyCustomContents'] as bool? ?? false,
destination: CopyPageRequestDestination.fromJson(
json[r'destination'] as Map<String, Object?>? ?? const {}),
pageTitle: json[r'pageTitle'] as String?,
body: json[r'body'] != null
? CopyPageRequestBody.fromJson(json[r'body']! as Map<String, Object?>)
: null,
);
}