FuturesPosition.fromMap constructor

FuturesPosition.fromMap(
  1. Map m
)

Implementation

FuturesPosition.fromMap(Map m)
    : entryPrice = double.parse(m['entryPrice']),
      markPrice = double.parse(m['markPrice']),
      positionAmt = double.parse(m['positionAmt']),
      symbol = m['symbol'],
      unRealizedProfit = double.parse(m['unRealizedProfit']);