L4MatchAttributes.fromJson constructor
Creates a L4MatchAttributes from JSON data.
Implementation
L4MatchAttributes.fromJson(Map<String, dynamic> json)
: this(
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'],
);