DriveRestrictions.fromJson constructor

DriveRestrictions.fromJson(
  1. Map json_
)

Implementation

DriveRestrictions.fromJson(core.Map json_)
    : this(
        adminManagedRestrictions:
            json_.containsKey('adminManagedRestrictions')
                ? json_['adminManagedRestrictions'] as core.bool
                : null,
        copyRequiresWriterPermission:
            json_.containsKey('copyRequiresWriterPermission')
                ? json_['copyRequiresWriterPermission'] as core.bool
                : null,
        domainUsersOnly: json_.containsKey('domainUsersOnly')
            ? json_['domainUsersOnly'] as core.bool
            : null,
        driveMembersOnly: json_.containsKey('driveMembersOnly')
            ? json_['driveMembersOnly'] as core.bool
            : null,
        sharingFoldersRequiresOrganizerPermission: json_
                .containsKey('sharingFoldersRequiresOrganizerPermission')
            ? json_['sharingFoldersRequiresOrganizerPermission'] as core.bool
            : null,
      );