VirtualGatewayClientPolicyTls.fromJson constructor

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

Implementation

factory VirtualGatewayClientPolicyTls.fromJson(Map<String, dynamic> json) {
  return VirtualGatewayClientPolicyTls(
    validation: VirtualGatewayTlsValidationContext.fromJson(
        json['validation'] as Map<String, dynamic>),
    enforce: json['enforce'] as bool?,
    ports: (json['ports'] as List?)
        ?.whereNotNull()
        .map((e) => e as int)
        .toList(),
  );
}