DestinationRule.fromJson constructor
Creates a DestinationRule from JSON data.
Implementation
DestinationRule.fromJson(Map<String, dynamic> json)
: this(
apiVersion: json['apiVersion'],
kind: json['kind'],
metadata: json['metadata'] != null
? ObjectMeta.fromJson(json['metadata'])
: null,
spec: json['spec'] != null
? DestinationRuleSpec.fromJson(json['spec'])
: null,
status: json['status'] != null
? DestinationRuleStatus.fromJson(json['status'])
: null,
);