BatchGetBuildBatchesOutput.fromJson constructor

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

Implementation

factory BatchGetBuildBatchesOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetBuildBatchesOutput(
    buildBatches: (json['buildBatches'] as List?)
        ?.whereNotNull()
        .map((e) => BuildBatch.fromJson(e as Map<String, dynamic>))
        .toList(),
    buildBatchesNotFound: (json['buildBatchesNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}