WsMarginCallEvent.fromMap constructor

WsMarginCallEvent.fromMap(
  1. 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();