StopLimitGTC.fromJson constructor

StopLimitGTC.fromJson(
  1. Map<String, dynamic> json
)

Creates a StopLimitGTC from a JSON object.

Implementation

StopLimitGTC.fromJson(Map<String, dynamic> json)
    : quoteSize = json['quoteSize'],
      baseSize = json['baseSize'],
      limitPrice = json['limitPrice'],
      stopPrice = json['stopPrice'],
      stopDirection = json['stopDirection'] != null
          ? StopDirection.fromCB(json['stopDirection'])
          : null;