AllowedSubjectAltNames.fromJson constructor

AllowedSubjectAltNames.fromJson(
  1. Map _json
)

Implementation

AllowedSubjectAltNames.fromJson(core.Map _json)
    : this(
        allowCustomSans: _json.containsKey('allowCustomSans')
            ? _json['allowCustomSans'] as core.bool
            : null,
        allowGlobbingDnsWildcards:
            _json.containsKey('allowGlobbingDnsWildcards')
                ? _json['allowGlobbingDnsWildcards'] as core.bool
                : null,
        allowedDnsNames: _json.containsKey('allowedDnsNames')
            ? (_json['allowedDnsNames'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        allowedEmailAddresses: _json.containsKey('allowedEmailAddresses')
            ? (_json['allowedEmailAddresses'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        allowedIps: _json.containsKey('allowedIps')
            ? (_json['allowedIps'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        allowedUris: _json.containsKey('allowedUris')
            ? (_json['allowedUris'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );