toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final accessLogSettings = this.accessLogSettings;
  final apiGatewayManaged = this.apiGatewayManaged;
  final autoDeploy = this.autoDeploy;
  final createdDate = this.createdDate;
  final defaultRouteSettings = this.defaultRouteSettings;
  final deploymentId = this.deploymentId;
  final description = this.description;
  final lastDeploymentStatusMessage = this.lastDeploymentStatusMessage;
  final lastUpdatedDate = this.lastUpdatedDate;
  final routeSettings = this.routeSettings;
  final stageName = this.stageName;
  final stageVariables = this.stageVariables;
  return {
    if (accessLogSettings != null) 'AccessLogSettings': accessLogSettings,
    if (apiGatewayManaged != null) 'ApiGatewayManaged': apiGatewayManaged,
    if (autoDeploy != null) 'AutoDeploy': autoDeploy,
    if (createdDate != null) 'CreatedDate': createdDate,
    if (defaultRouteSettings != null)
      'DefaultRouteSettings': defaultRouteSettings,
    if (deploymentId != null) 'DeploymentId': deploymentId,
    if (description != null) 'Description': description,
    if (lastDeploymentStatusMessage != null)
      'LastDeploymentStatusMessage': lastDeploymentStatusMessage,
    if (lastUpdatedDate != null) 'LastUpdatedDate': lastUpdatedDate,
    if (routeSettings != null) 'RouteSettings': routeSettings,
    if (stageName != null) 'StageName': stageName,
    if (stageVariables != null) 'StageVariables': stageVariables,
  };
}