AccessPolicy.fromJson constructor

AccessPolicy.fromJson(
  1. Map json_
)

Implementation

AccessPolicy.fromJson(core.Map json_)
    : this(
        allowed: json_.containsKey('allowed')
            ? json_['allowed'] as core.bool
            : null,
        exception: json_.containsKey('exception')
            ? (json_['exception'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );