toJson method

Map<String, dynamic> toJson()

Implementation

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