we have the following DAML Contract:
data Something = Option A | Option B deriving(Show, Eq)
data Details = Details with id: Text name: Text state: Text
template Main with a: Party b: Party
c: Something
d: Details
I know we can do the following for 'a' and 'b' :
fields:{ a: daml.party(a), b: daml.party(b),} But how can I write for c and d?