toMap method
Implementation
Map<String, Object?> toMap() {
final conf = <String, Object?>{
'identifier': identifier,
'afterTrack': afterTrack != null ? true : null,
'entities': entities?.map((e) => e.toMap()).toList()
};
conf.removeWhere((key, value) => value == null);
return conf;
}