toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  return <String, dynamic>{
    "type": _type,
    "settings": {
      "scanningBehavior": _scanningBehavior.toString(),
      "scanningPrecision": _scanningPrecision.toString(),
      "previewBehavior": _previewBehavior.toString(),
    }
  };
}