Map<String, dynamic> toMap() { return <String, dynamic>{ 'collectionId': collectionId, 'faceMatchThreshold': ?faceMatchThreshold, }; }