const mixinafBedSheet::ValueEncoders
afBedSheet::ValueEncoders
(Service) - Holds a list of ValueEncoders.
@Contribute { serviceType=ValueEncoders# }
static Void contributeValueEncoders(MappedConfig conf) {
conf[MyEntity#] = conf.autobuild(MyEntityEncoder#)
}
@uses a MappedConfig of Type:ValueEncoder
- toClient
abstract Str? toClient(Type valType, Obj? value)Converts the given
valueto Str via a contributed ValueEncoder. If noValueEncoderis found,toStr()is used.- toValue
abstract Obj? toValue(Type valType, Str? clientValue)Converts the given
clientValueinto the givenvalTypevia a contributed ValueEncoder. If noValueEncoderis found the value is coerced.