toJson method

Map<String, dynamic> toJson()

Implementation

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