const mixinafMorphia::BsonConv
afMorphia::BsonConv
Implement to convert custom Fantom types to / from a BSON representation.
- fromBsonVal
- abstract Obj? fromBsonVal(Obj? bsonVal, BsonConvCtx ctx)- Converts a BSON value to Fantom. - bsonValis nullable so converters can create empty / default objects.
- toBsonVal
- abstract Obj? toBsonVal(Obj? fantomObj, BsonConvCtx ctx)- Converts a Fantom object to its BSON representation. - Must return a valid BSON value (or a List or Map thereof). - fantomObjis nullable so converters can create empty / default objects.