toJson method
Implementation
Map<String, dynamic> toJson() {
final apiGatewayDomainName = this.apiGatewayDomainName;
final certificateArn = this.certificateArn;
final certificateName = this.certificateName;
final certificateUploadDate = this.certificateUploadDate;
final domainNameStatus = this.domainNameStatus;
final domainNameStatusMessage = this.domainNameStatusMessage;
final endpointType = this.endpointType;
final hostedZoneId = this.hostedZoneId;
final securityPolicy = this.securityPolicy;
return {
if (apiGatewayDomainName != null)
'apiGatewayDomainName': apiGatewayDomainName,
if (certificateArn != null) 'certificateArn': certificateArn,
if (certificateName != null) 'certificateName': certificateName,
if (certificateUploadDate != null)
'certificateUploadDate': iso8601ToJson(certificateUploadDate),
if (domainNameStatus != null)
'domainNameStatus': domainNameStatus.toValue(),
if (domainNameStatusMessage != null)
'domainNameStatusMessage': domainNameStatusMessage,
if (endpointType != null) 'endpointType': endpointType.toValue(),
if (hostedZoneId != null) 'hostedZoneId': hostedZoneId,
if (securityPolicy != null) 'securityPolicy': securityPolicy.toValue(),
};
}