AutoBranchCreationConfig.fromJson constructor

AutoBranchCreationConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AutoBranchCreationConfig.fromJson(Map<String, dynamic> json) {
  return AutoBranchCreationConfig(
    basicAuthCredentials: json['basicAuthCredentials'] as String?,
    buildSpec: json['buildSpec'] as String?,
    enableAutoBuild: json['enableAutoBuild'] as bool?,
    enableBasicAuth: json['enableBasicAuth'] as bool?,
    enablePerformanceMode: json['enablePerformanceMode'] as bool?,
    enablePullRequestPreview: json['enablePullRequestPreview'] as bool?,
    environmentVariables:
        (json['environmentVariables'] as Map<String, dynamic>?)
            ?.map((k, e) => MapEntry(k, e as String)),
    framework: json['framework'] as String?,
    pullRequestEnvironmentName: json['pullRequestEnvironmentName'] as String?,
    stage: (json['stage'] as String?)?.toStage(),
  );
}