ProjectBuildBatchConfigRestrictions.fromMap constructor
ProjectBuildBatchConfigRestrictions.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ProjectBuildBatchConfigRestrictions.fromMap(Map<String, dynamic> map) {
return ProjectBuildBatchConfigRestrictions(
computeTypesAlloweds: (() { final guardedValue = map['computeTypesAlloweds']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
maximumBuildsAllowed: (() { final guardedValue = map['maximumBuildsAllowed']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
);
}