FileCapabilities.fromJson constructor

FileCapabilities.fromJson(
  1. Map json_
)

Implementation

FileCapabilities.fromJson(core.Map json_)
    : this(
        canAcceptOwnership: json_.containsKey('canAcceptOwnership')
            ? json_['canAcceptOwnership'] as core.bool
            : null,
        canAddChildren: json_.containsKey('canAddChildren')
            ? json_['canAddChildren'] as core.bool
            : null,
        canAddFolderFromAnotherDrive:
            json_.containsKey('canAddFolderFromAnotherDrive')
                ? json_['canAddFolderFromAnotherDrive'] as core.bool
                : null,
        canAddMyDriveParent: json_.containsKey('canAddMyDriveParent')
            ? json_['canAddMyDriveParent'] as core.bool
            : null,
        canChangeCopyRequiresWriterPermission:
            json_.containsKey('canChangeCopyRequiresWriterPermission')
                ? json_['canChangeCopyRequiresWriterPermission'] as core.bool
                : null,
        canChangeSecurityUpdateEnabled:
            json_.containsKey('canChangeSecurityUpdateEnabled')
                ? json_['canChangeSecurityUpdateEnabled'] as core.bool
                : null,
        canChangeViewersCanCopyContent:
            json_.containsKey('canChangeViewersCanCopyContent')
                ? json_['canChangeViewersCanCopyContent'] as core.bool
                : null,
        canComment: json_.containsKey('canComment')
            ? json_['canComment'] as core.bool
            : null,
        canCopy: json_.containsKey('canCopy')
            ? json_['canCopy'] as core.bool
            : null,
        canDelete: json_.containsKey('canDelete')
            ? json_['canDelete'] as core.bool
            : null,
        canDeleteChildren: json_.containsKey('canDeleteChildren')
            ? json_['canDeleteChildren'] as core.bool
            : null,
        canDownload: json_.containsKey('canDownload')
            ? json_['canDownload'] as core.bool
            : null,
        canEdit: json_.containsKey('canEdit')
            ? json_['canEdit'] as core.bool
            : null,
        canListChildren: json_.containsKey('canListChildren')
            ? json_['canListChildren'] as core.bool
            : null,
        canModifyContent: json_.containsKey('canModifyContent')
            ? json_['canModifyContent'] as core.bool
            : null,
        canModifyContentRestriction:
            json_.containsKey('canModifyContentRestriction')
                ? json_['canModifyContentRestriction'] as core.bool
                : null,
        canModifyEditorContentRestriction:
            json_.containsKey('canModifyEditorContentRestriction')
                ? json_['canModifyEditorContentRestriction'] as core.bool
                : null,
        canModifyLabels: json_.containsKey('canModifyLabels')
            ? json_['canModifyLabels'] as core.bool
            : null,
        canModifyOwnerContentRestriction:
            json_.containsKey('canModifyOwnerContentRestriction')
                ? json_['canModifyOwnerContentRestriction'] as core.bool
                : null,
        canMoveChildrenOutOfDrive:
            json_.containsKey('canMoveChildrenOutOfDrive')
                ? json_['canMoveChildrenOutOfDrive'] as core.bool
                : null,
        canMoveChildrenOutOfTeamDrive:
            json_.containsKey('canMoveChildrenOutOfTeamDrive')
                ? json_['canMoveChildrenOutOfTeamDrive'] as core.bool
                : null,
        canMoveChildrenWithinDrive:
            json_.containsKey('canMoveChildrenWithinDrive')
                ? json_['canMoveChildrenWithinDrive'] as core.bool
                : null,
        canMoveChildrenWithinTeamDrive:
            json_.containsKey('canMoveChildrenWithinTeamDrive')
                ? json_['canMoveChildrenWithinTeamDrive'] as core.bool
                : null,
        canMoveItemIntoTeamDrive:
            json_.containsKey('canMoveItemIntoTeamDrive')
                ? json_['canMoveItemIntoTeamDrive'] as core.bool
                : null,
        canMoveItemOutOfDrive: json_.containsKey('canMoveItemOutOfDrive')
            ? json_['canMoveItemOutOfDrive'] as core.bool
            : null,
        canMoveItemOutOfTeamDrive:
            json_.containsKey('canMoveItemOutOfTeamDrive')
                ? json_['canMoveItemOutOfTeamDrive'] as core.bool
                : null,
        canMoveItemWithinDrive: json_.containsKey('canMoveItemWithinDrive')
            ? json_['canMoveItemWithinDrive'] as core.bool
            : null,
        canMoveItemWithinTeamDrive:
            json_.containsKey('canMoveItemWithinTeamDrive')
                ? json_['canMoveItemWithinTeamDrive'] as core.bool
                : null,
        canMoveTeamDriveItem: json_.containsKey('canMoveTeamDriveItem')
            ? json_['canMoveTeamDriveItem'] as core.bool
            : null,
        canReadDrive: json_.containsKey('canReadDrive')
            ? json_['canReadDrive'] as core.bool
            : null,
        canReadLabels: json_.containsKey('canReadLabels')
            ? json_['canReadLabels'] as core.bool
            : null,
        canReadRevisions: json_.containsKey('canReadRevisions')
            ? json_['canReadRevisions'] as core.bool
            : null,
        canReadTeamDrive: json_.containsKey('canReadTeamDrive')
            ? json_['canReadTeamDrive'] as core.bool
            : null,
        canRemoveChildren: json_.containsKey('canRemoveChildren')
            ? json_['canRemoveChildren'] as core.bool
            : null,
        canRemoveContentRestriction:
            json_.containsKey('canRemoveContentRestriction')
                ? json_['canRemoveContentRestriction'] as core.bool
                : null,
        canRemoveMyDriveParent: json_.containsKey('canRemoveMyDriveParent')
            ? json_['canRemoveMyDriveParent'] as core.bool
            : null,
        canRename: json_.containsKey('canRename')
            ? json_['canRename'] as core.bool
            : null,
        canShare: json_.containsKey('canShare')
            ? json_['canShare'] as core.bool
            : null,
        canTrash: json_.containsKey('canTrash')
            ? json_['canTrash'] as core.bool
            : null,
        canTrashChildren: json_.containsKey('canTrashChildren')
            ? json_['canTrashChildren'] as core.bool
            : null,
        canUntrash: json_.containsKey('canUntrash')
            ? json_['canUntrash'] as core.bool
            : null,
      );