$AccessPolicy.fromJson constructor Null safety

$AccessPolicy.fromJson(
  1. Map _json
)

Implementation

$AccessPolicy.fromJson(core.Map _json)
    : this(
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        parent: _json.containsKey('parent')
            ? _json['parent'] as core.String
            : null,
        scopes: _json.containsKey('scopes')
            ? (_json['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        title:
            _json.containsKey('title') ? _json['title'] as core.String : null,
      );