Skip to main content

Generating Models

Define your model

data class Employee(
val id: Long,
val name: String,
val dob: Instant,
)

Generate

val forge = ModelForge()
val employee = forge.build<Employee>()

or by Delegation

val employee: Employee by forgery()