As the title says creating a struct like this:
[BigQueryStruct]
public sealed class LastReport
{
public DateTimeOffset Time { get; set; }
public long Offset { get; set; }
}
leads to this error:
System.ArgumentException: Object of type 'System.DateTime' cannot be converted to type 'System.DateTimeOffset'.,
It seems like the underlying Dictionary containing the value contains a DateTime instead of DateTimeOffset for the value in question. I'm not sure if this is a config issue or something deeper with the library.