toJson method
Implementation
Map<String, dynamic> toJson() {
final timeInSeconds = this.timeInSeconds;
final offsetInNanos = this.offsetInNanos;
return {
'timeInSeconds': timeInSeconds,
if (offsetInNanos != null) 'offsetInNanos': offsetInNanos,
};
}