private function recordFromBigQuery(array $value, array $schema) { $record = []; foreach ($value['f'] as $key => $val) { $record[$schema[$key]['name']] = $this->fromBigQuery($val, $schema[$key]); } return $record; }