BatchRestrictions.fromJson constructor
Implementation
factory BatchRestrictions.fromJson(Map<String, dynamic> json) {
return BatchRestrictions(
computeTypesAllowed: (json['computeTypesAllowed'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
maximumBuildsAllowed: json['maximumBuildsAllowed'] as int?,
);
}