FromProduct

info.fingo.spata.converter.FromProduct
See theFromProduct companion object
trait FromProduct[P <: Product]

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

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

Type parameters

P

type of source entity.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def encode(p: P): Record

Converts product (case class) to record.

Converts product (case class) to record.

Value parameters

p

the source entity to be converted.

Attributes

Returns

the record with fields from provided entity.