blob: e386c79b7318fe50de972ad2cbe3061b0c37f11e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{-# LANGUAGE DeriveGeneric #-}
module Model.Json.TotalPayment
( TotalPayment(..)
) where
import GHC.Generics
import Data.Text (Text)
import Data.Aeson
data TotalPayment = TotalPayment
{ userName :: Text
, totalPayment :: Int
} deriving (Show, Generic)
instance FromJSON TotalPayment
instance ToJSON TotalPayment
|