TLSMatchAttributes.fromJson constructor

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

Creates a TLSMatchAttributes from JSON data.

Implementation

TLSMatchAttributes.fromJson(Map<String, dynamic> json)
    : this(
        sniHosts: json['sniHosts'] != null
            ? List<String>.from(json['sniHosts'])
            : [],
        destinationSubnets: json['destinationSubnets'] != null
            ? List<String>.from(json['destinationSubnets'])
            : null,
        port: json['port'],
        sourceLabels: json['sourceLabels'] != null
            ? Map<String, String>.from(json['sourceLabels'])
            : null,
        gateways: json['gateways'] != null
            ? List<String>.from(json['gateways'])
            : null,
        sourceNamespace: json['sourceNamespace'],
      );