BatchRestrictions.fromJson constructor

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

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?,
  );
}