toMap method

  1. @override
Map<String, dynamic> toMap()

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'codeDuplicateFilter': codeDuplicateFilter.inMilliseconds,
    'locationSelection': locationSelection == null ? {'type': 'none'} : locationSelection?.toMap(),
    'properties': _properties,
    'symbologies': _symbologies.map<String, Map<String, dynamic>>((key, value) => MapEntry(key, value.toMap())),
    'enabledCompositeTypes': enabledCompositeTypes.map((e) => e.toString()).toList(),
    'batterySaving': batterySaving.toString(),
    'scanIntention': scanIntention.toString(),
  };
}