Binding.fromJson constructor

Binding.fromJson(
  1. Map _json
)

Implementation

Binding.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,
      );