10 lines
287 B
Kotlin
10 lines
287 B
Kotlin
|
package com.cubetiqs.graphql.demo.domain.account
|
||
|
|
||
|
object AccountMapper {
|
||
|
fun fromInputToAccount(input: AccountInput): Account {
|
||
|
return Account(
|
||
|
type = input.type ?: AccountType.BASIC,
|
||
|
currency = input.currency ?: AccountCurrency.USD,
|
||
|
)
|
||
|
}
|
||
|
}
|