Skip to content

Allow merging case classes #32

@jdsalchow

Description

@jdsalchow

I hope I didn't miss a way of doing this already, but it would be great if there was a possibility to merge case classes.

Example:

case class Person(name: String)
case class Address(street: String)
case class PersonWithAddress(name: String, street: String)

Person("John von Neumann")
  .into[PersonWithAddress]
  .transform(Fields.from(Address("1 Einstein Drive")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions