toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final basicAuthCredentials = this.basicAuthCredentials;
  final buildSpec = this.buildSpec;
  final enableAutoBuild = this.enableAutoBuild;
  final enableBasicAuth = this.enableBasicAuth;
  final enablePerformanceMode = this.enablePerformanceMode;
  final enablePullRequestPreview = this.enablePullRequestPreview;
  final environmentVariables = this.environmentVariables;
  final framework = this.framework;
  final pullRequestEnvironmentName = this.pullRequestEnvironmentName;
  final stage = this.stage;
  return {
    if (basicAuthCredentials != null)
      'basicAuthCredentials': basicAuthCredentials,
    if (buildSpec != null) 'buildSpec': buildSpec,
    if (enableAutoBuild != null) 'enableAutoBuild': enableAutoBuild,
    if (enableBasicAuth != null) 'enableBasicAuth': enableBasicAuth,
    if (enablePerformanceMode != null)
      'enablePerformanceMode': enablePerformanceMode,
    if (enablePullRequestPreview != null)
      'enablePullRequestPreview': enablePullRequestPreview,
    if (environmentVariables != null)
      'environmentVariables': environmentVariables,
    if (framework != null) 'framework': framework,
    if (pullRequestEnvironmentName != null)
      'pullRequestEnvironmentName': pullRequestEnvironmentName,
    if (stage != null) 'stage': stage.toValue(),
  };
}