WsMarginCallEvent.fromMap constructor
WsMarginCallEvent.fromMap(
- Map m
Implementation
WsMarginCallEvent.fromMap(Map m)
: eventType = m['e'],
eventTime = m['E'],
crossWalletBalance = double.parse(m['cw']),
marginCalledPositions = (m['p'] as List<dynamic>)
.map((e) => WsPosition.fromMap(e))
.toList();