AccessSelector.fromJson constructor

AccessSelector.fromJson(
  1. Map json_
)

Implementation

AccessSelector.fromJson(core.Map json_)
    : this(
        permissions: json_.containsKey('permissions')
            ? (json_['permissions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        roles: json_.containsKey('roles')
            ? (json_['roles'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );