Permission.fromJson constructor

Permission.fromJson(
  1. Map json_
)

Implementation

Permission.fromJson(core.Map json_)
    : this(
        allowDiscovery: json_.containsKey('allowDiscovery')
            ? json_['allowDiscovery'] as core.bool
            : null,
        anyone: json_.containsKey('anyone')
            ? Anyone.fromJson(
                json_['anyone'] as core.Map<core.String, core.dynamic>)
            : null,
        domain: json_.containsKey('domain')
            ? Domain.fromJson(
                json_['domain'] as core.Map<core.String, core.dynamic>)
            : null,
        group: json_.containsKey('group')
            ? Group.fromJson(
                json_['group'] as core.Map<core.String, core.dynamic>)
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        user: json_.containsKey('user')
            ? User.fromJson(
                json_['user'] as core.Map<core.String, core.dynamic>)
            : null,
      );