toMap is the method to convert the class to a map.
Map<String, dynamic> toMap() { return { 'cameras': cameras.map((x) => x.toMap()).toList(), }; }