toJson method
Implementation
Map<String, dynamic> toJson() {
final apiEndpoint = this.apiEndpoint;
final apiId = this.apiId;
final apiKeySelectionExpression = this.apiKeySelectionExpression;
final corsConfiguration = this.corsConfiguration;
final createdDate = this.createdDate;
final description = this.description;
final name = this.name;
final protocolType = this.protocolType;
final routeSelectionExpression = this.routeSelectionExpression;
final version = this.version;
return {
if (apiEndpoint != null) 'ApiEndpoint': apiEndpoint,
if (apiId != null) 'ApiId': apiId,
if (apiKeySelectionExpression != null)
'ApiKeySelectionExpression': apiKeySelectionExpression,
if (corsConfiguration != null) 'CorsConfiguration': corsConfiguration,
if (createdDate != null) 'CreatedDate': createdDate,
if (description != null) 'Description': description,
if (name != null) 'Name': name,
if (protocolType != null) 'ProtocolType': protocolType,
if (routeSelectionExpression != null)
'RouteSelectionExpression': routeSelectionExpression,
if (version != null) 'Version': version,
};
}