toJson method
Serializes this instance to a JSON object.
Implementation
Map<String, dynamic> toJson() => {
'path': path,
'types': (types ?? DataType.spatial).map((t) => t.name).toList(),
if (boundingBox != null) 'boundingBox': boundingBox!.toJson(),
};