toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() {
  final conf = <String, Object?>{
    'minimumVisitLength': minimumVisitLength,
    'heartbeatDelay': heartbeatDelay
  };
  conf.removeWhere((key, value) => value == null);
  return conf;
}