toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final customEndpoint = this.customEndpoint;
  final customEndpointCertificateArn = this.customEndpointCertificateArn;
  final customEndpointEnabled = this.customEndpointEnabled;
  final enforceHTTPS = this.enforceHTTPS;
  final tLSSecurityPolicy = this.tLSSecurityPolicy;
  return {
    if (customEndpoint != null) 'CustomEndpoint': customEndpoint,
    if (customEndpointCertificateArn != null)
      'CustomEndpointCertificateArn': customEndpointCertificateArn,
    if (customEndpointEnabled != null)
      'CustomEndpointEnabled': customEndpointEnabled,
    if (enforceHTTPS != null) 'EnforceHTTPS': enforceHTTPS,
    if (tLSSecurityPolicy != null)
      'TLSSecurityPolicy': tLSSecurityPolicy.toValue(),
  };
}