Guest User

Untitled

a guest
Dec 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. implicit val keyEncoder: KeyEncoder[BookingKey] =
  2. KeyEncoder.encodeKeyString.contramap(_.value)
  3.  
  4. implicit val keyDecoder: KeyDecoder[BookingKey] =
  5. KeyDecoder.decodeKeyString.map(BookingKey)
Add Comment
Please, Sign In to add comment