ToProduct

info.fingo.spata.converter.ToProduct
See theToProduct companion object
trait ToProduct[P <: Product]

Converter from a record to a product (case class).

This trait defines behavior to be implemented by concrete, given converters.

Type parameters

P

type of target entity.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode(r: Record): Decoded[P]

Converts record to product (case class).

Converts record to product (case class).

Value parameters

r

record to be converted.

Attributes

Returns

either converted tuple or an exception.