packages feed

docusign-base-0.0.1: src/DocuSign/Base/Types/MatchBox.hs

module DocuSign.Base.Types.MatchBox where

import DocuSign.Base.Types.Common

data MatchBox = MatchBox
  { matchBoxHeight     :: Maybe Int
  , matchBoxPageNumber :: Maybe Int
  , matchBoxWidth      :: Maybe Int
  , matchBoxXPosition  :: Maybe Int
  , matchBoxYPosition  :: Maybe Int
  } deriving (Show, Eq, Generic)

instance FromJSON MatchBox where
  parseJSON = genericParseJSON (removeFieldLabelPrefix "matchBox")
instance ToJSON MatchBox where
  toJSON = genericToJSON (removeFieldLabelPrefix "matchBox")

instance Default MatchBox