def restore_row(self, row, schema):
for index, field in enumerate(schema.fields):<EOL><INDENT>if field.type == '<STR_LIT>':<EOL><INDENT>row[index] = parse(row[index])<EOL><DEDENT>if field.type == '<STR_LIT:date>':<EOL><INDENT>row[index] = parse(row[index]).date()<EOL><DEDENT>if field.type == '<STR_LIT:time>':<EOL><INDENT>row[index] = parse(row[index]).time()<EOL><DEDENT><DEDENT>return schema.cast_row(row)<EOL>
Restore row from BigQuery