toJson method

Map<String, dynamic> toJson()

Implementation

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