GetDomainNameResponse.fromJson constructor

GetDomainNameResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetDomainNameResponse.fromJson(Map<String, dynamic> json) {
  return GetDomainNameResponse(
    apiMappingSelectionExpression:
        json['apiMappingSelectionExpression'] as String?,
    domainName: json['domainName'] as String?,
    domainNameConfigurations: (json['domainNameConfigurations'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DomainNameConfiguration.fromJson(e as Map<String, dynamic>))
        .toList(),
    mutualTlsAuthentication: json['mutualTlsAuthentication'] != null
        ? MutualTlsAuthentication.fromJson(
            json['mutualTlsAuthentication'] as Map<String, dynamic>)
        : null,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}