BucketAccessControl.fromJson constructor

BucketAccessControl.fromJson(
  1. Map json_
)

Implementation

BucketAccessControl.fromJson(core.Map json_)
    : this(
        bucket: json_.containsKey('bucket')
            ? json_['bucket'] as core.String
            : null,
        domain: json_.containsKey('domain')
            ? json_['domain'] as core.String
            : null,
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        entity: json_.containsKey('entity')
            ? json_['entity'] as core.String
            : null,
        entityId: json_.containsKey('entityId')
            ? json_['entityId'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        projectTeam: json_.containsKey('projectTeam')
            ? BucketAccessControlProjectTeam.fromJson(
                json_['projectTeam'] as core.Map<core.String, core.dynamic>)
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
      );