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) => Binding.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.int
            : null,
      );