NameConstraints.fromJson constructor

NameConstraints.fromJson(
  1. Map json_
)

Implementation

NameConstraints.fromJson(core.Map json_)
    : this(
        critical: json_.containsKey('critical')
            ? json_['critical'] as core.bool
            : null,
        excludedDnsNames: json_.containsKey('excludedDnsNames')
            ? (json_['excludedDnsNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        excludedEmailAddresses: json_.containsKey('excludedEmailAddresses')
            ? (json_['excludedEmailAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        excludedIpRanges: json_.containsKey('excludedIpRanges')
            ? (json_['excludedIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        excludedUris: json_.containsKey('excludedUris')
            ? (json_['excludedUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        permittedDnsNames: json_.containsKey('permittedDnsNames')
            ? (json_['permittedDnsNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        permittedEmailAddresses: json_.containsKey('permittedEmailAddresses')
            ? (json_['permittedEmailAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        permittedIpRanges: json_.containsKey('permittedIpRanges')
            ? (json_['permittedIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        permittedUris: json_.containsKey('permittedUris')
            ? (json_['permittedUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );