Policy.fromJson constructor

Policy.fromJson(
  1. Map _json
)

Implementation

Policy.fromJson(core.Map _json)
    : this(
        bindings: _json.containsKey('bindings')
            ? (_json['bindings'] as core.List)
                .map((value) => PolicyBindings.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        resourceId: _json.containsKey('resourceId')
            ? _json['resourceId'] as core.String
            : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.int
            : null,
      );