Converts this instance to a JSON map.
Map<String, dynamic> toJson() { return { 'captures': captures.map((c) => c.toJson()).toList(), }; }