PolicyBindings.fromJson constructor

PolicyBindings.fromJson(
  1. Map json_
)

Implementation

PolicyBindings.fromJson(core.Map json_)
    : this(
        condition: json_.containsKey('condition')
            ? Expr.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        members: json_.containsKey('members')
            ? (json_['members'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
      );