toDateTime method
This timestamp as a DateTime.
The DateTime will be in UTC and the nanoseconds precision of the Timestamp will be reduced to microsecond precision.
Implementation
DateTime toDateTime() => DateTime.fromMicrosecondsSinceEpoch(
seconds * 1_000_000 + (nanos / 1000).round(),
isUtc: true,
);