ProjectBuildBatchConfig.fromJson constructor

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

Implementation

factory ProjectBuildBatchConfig.fromJson(Map<String, dynamic> json) {
  return ProjectBuildBatchConfig(
    combineArtifacts: json['combineArtifacts'] as bool?,
    restrictions: json['restrictions'] != null
        ? BatchRestrictions.fromJson(
            json['restrictions'] as Map<String, dynamic>)
        : null,
    serviceRole: json['serviceRole'] as String?,
    timeoutInMins: json['timeoutInMins'] as int?,
  );
}