module Codec.GlTF.Asset where

import Codec.GlTF.Prelude

-- | Metadata about the glTF asset.
data Asset = Asset
  { Asset -> Text
version    :: Text
  , Asset -> Maybe Text
copyright  :: Maybe Text
  , Asset -> Maybe Text
generator  :: Maybe Text
  , Asset -> Maybe Text
minVersion :: Maybe Text
  , Asset -> Maybe Object
extensions :: Maybe Object
  , Asset -> Maybe Value
extras     :: Maybe Value
  } deriving (Asset -> Asset -> Bool
(Asset -> Asset -> Bool) -> (Asset -> Asset -> Bool) -> Eq Asset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Asset -> Asset -> Bool
$c/= :: Asset -> Asset -> Bool
== :: Asset -> Asset -> Bool
$c== :: Asset -> Asset -> Bool
Eq, Int -> Asset -> ShowS
[Asset] -> ShowS
Asset -> String
(Int -> Asset -> ShowS)
-> (Asset -> String) -> ([Asset] -> ShowS) -> Show Asset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Asset] -> ShowS
$cshowList :: [Asset] -> ShowS
show :: Asset -> String
$cshow :: Asset -> String
showsPrec :: Int -> Asset -> ShowS
$cshowsPrec :: Int -> Asset -> ShowS
Show, (forall x. Asset -> Rep Asset x)
-> (forall x. Rep Asset x -> Asset) -> Generic Asset
forall x. Rep Asset x -> Asset
forall x. Asset -> Rep Asset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Asset x -> Asset
$cfrom :: forall x. Asset -> Rep Asset x
Generic)

instance FromJSON Asset
instance ToJSON Asset