toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final anchor = this.anchor;
  final source = this.source;
  final start = this.start;
  final timestampOffset = this.timestampOffset;
  return {
    if (anchor != null) 'anchor': anchor,
    if (source != null) 'source': source.toValue(),
    if (start != null) 'start': start,
    if (timestampOffset != null) 'timestampOffset': timestampOffset,
  };
}