toJson method
Implementation
Map<String, dynamic> toJson() {
final virtualServiceName = this.virtualServiceName;
final clientPolicy = this.clientPolicy;
return {
'virtualServiceName': virtualServiceName,
if (clientPolicy != null) 'clientPolicy': clientPolicy,
};
}