ItemAcl.fromJson constructor

ItemAcl.fromJson(
  1. Map json_
)

Implementation

ItemAcl.fromJson(core.Map json_)
    : this(
        aclInheritanceType: json_.containsKey('aclInheritanceType')
            ? json_['aclInheritanceType'] as core.String
            : null,
        deniedReaders: json_.containsKey('deniedReaders')
            ? (json_['deniedReaders'] as core.List)
                .map((value) => Principal.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        inheritAclFrom: json_.containsKey('inheritAclFrom')
            ? json_['inheritAclFrom'] as core.String
            : null,
        owners: json_.containsKey('owners')
            ? (json_['owners'] as core.List)
                .map((value) => Principal.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        readers: json_.containsKey('readers')
            ? (json_['readers'] as core.List)
                .map((value) => Principal.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );