CopyPageHierarchyRequest.fromJson constructor

CopyPageHierarchyRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory CopyPageHierarchyRequest.fromJson(Map<String, Object?> json) {
  return CopyPageHierarchyRequest(
    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,
    copyDescendants: json[r'copyDescendants'] as bool? ?? false,
    destinationPageId: json[r'destinationPageId'] as String? ?? '',
    titleOptions: json[r'titleOptions'] != null
        ? CopyPageHierarchyTitleOptions.fromJson(
            json[r'titleOptions']! as Map<String, Object?>)
        : null,
  );
}