Map<String, dynamic> toMap() { return { 'customAttributeId': customAttributeId, 'values': values?.map((e) => e.toMap()).toList(), }; }