//tempest-internal/app.cash.tempest.internal/Codec
Codec¶
[jvm]\ interface Codec<A : Any, D : Any>
Converts values between the mutable DynamoDBMapper
objects that defines the union of all key and value attributes, and specific Tempest values.
It is the caller’s responsibility to check that the DynamoDBMapper
instance can be safely converted to the target type. If it cannot be, the behavior of this codec is undefined.
Functions¶
Name | Summary |
---|---|
toApp | [jvm] abstract fun toApp(dbItem: D): A |
toDb | [jvm] abstract fun toDb(appItem: A): D |