toJson method
Implementation
Map<String, dynamic> toJson() {
final instancePort = this.instancePort;
final loadBalancerPort = this.loadBalancerPort;
final protocol = this.protocol;
final instanceProtocol = this.instanceProtocol;
final sSLCertificateId = this.sSLCertificateId;
return {
'InstancePort': instancePort,
'LoadBalancerPort': loadBalancerPort,
'Protocol': protocol,
if (instanceProtocol != null) 'InstanceProtocol': instanceProtocol,
if (sSLCertificateId != null) 'SSLCertificateId': sSLCertificateId,
};
}