Report.scala 364 Bytes
Newer Older
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package ch.memobase.models

import upickle.default.{Reader, _}

case class Report(id: String,
                  step: String,
                  timestamp: String,
                  status: String,
                  message: String)

object Report {
  def apply(json: String): Report = {
    read[Report](json)
  }
  implicit val reader: Reader[Report] = macroR
}