TeamDriveRestrictions.fromJson constructor

TeamDriveRestrictions.fromJson(
  1. Map json_
)

Implementation

TeamDriveRestrictions.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,
        sharingFoldersRequiresOrganizerPermission: json_
                .containsKey('sharingFoldersRequiresOrganizerPermission')
            ? json_['sharingFoldersRequiresOrganizerPermission'] as core.bool
            : null,
        teamMembersOnly: json_.containsKey('teamMembersOnly')
            ? json_['teamMembersOnly'] as core.bool
            : null,
      );