DriveCapabilities.fromJson constructor
DriveCapabilities.fromJson(
- Map json_
Implementation
DriveCapabilities.fromJson(core.Map json_)
: this(
canAddChildren: json_.containsKey('canAddChildren')
? json_['canAddChildren'] as core.bool
: null,
canChangeCopyRequiresWriterPermissionRestriction: json_.containsKey(
'canChangeCopyRequiresWriterPermissionRestriction')
? json_['canChangeCopyRequiresWriterPermissionRestriction']
as core.bool
: null,
canChangeDomainUsersOnlyRestriction:
json_.containsKey('canChangeDomainUsersOnlyRestriction')
? json_['canChangeDomainUsersOnlyRestriction'] as core.bool
: null,
canChangeDriveBackground:
json_.containsKey('canChangeDriveBackground')
? json_['canChangeDriveBackground'] as core.bool
: null,
canChangeDriveMembersOnlyRestriction:
json_.containsKey('canChangeDriveMembersOnlyRestriction')
? json_['canChangeDriveMembersOnlyRestriction'] as core.bool
: null,
canChangeSharingFoldersRequiresOrganizerPermissionRestriction: json_
.containsKey(
'canChangeSharingFoldersRequiresOrganizerPermissionRestriction')
? json_['canChangeSharingFoldersRequiresOrganizerPermissionRestriction']
as core.bool
: null,
canComment: json_.containsKey('canComment')
? json_['canComment'] as core.bool
: null,
canCopy: json_.containsKey('canCopy')
? json_['canCopy'] as core.bool
: null,
canDeleteChildren: json_.containsKey('canDeleteChildren')
? json_['canDeleteChildren'] as core.bool
: null,
canDeleteDrive: json_.containsKey('canDeleteDrive')
? json_['canDeleteDrive'] 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,
canManageMembers: json_.containsKey('canManageMembers')
? json_['canManageMembers'] as core.bool
: null,
canReadRevisions: json_.containsKey('canReadRevisions')
? json_['canReadRevisions'] as core.bool
: null,
canRename: json_.containsKey('canRename')
? json_['canRename'] as core.bool
: null,
canRenameDrive: json_.containsKey('canRenameDrive')
? json_['canRenameDrive'] as core.bool
: null,
canResetDriveRestrictions:
json_.containsKey('canResetDriveRestrictions')
? json_['canResetDriveRestrictions'] as core.bool
: null,
canShare: json_.containsKey('canShare')
? json_['canShare'] as core.bool
: null,
canTrashChildren: json_.containsKey('canTrashChildren')
? json_['canTrashChildren'] as core.bool
: null,
);