AclRule.fromJson constructor

AclRule.fromJson(
  1. Map json_
)

Implementation

AclRule.fromJson(core.Map json_)
    : this(
        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,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        scope: json_.containsKey('scope')
            ? AclRuleScope.fromJson(
                json_['scope'] as core.Map<core.String, core.dynamic>)
            : null,
      );