SnapshotMessage constructor

SnapshotMessage({
  1. Int64? ts,
  2. String? code,
  3. String? exchange,
  4. double? open,
  5. double? high,
  6. double? low,
  7. double? close,
  8. String? tickType,
  9. double? changePrice,
  10. double? changeRate,
  11. String? changeType,
  12. double? averagePrice,
  13. Int64? volume,
  14. Int64? totalVolume,
  15. Int64? amount,
  16. Int64? totalAmount,
  17. double? yesterdayVolume,
  18. double? buyPrice,
  19. double? buyVolume,
  20. double? sellPrice,
  21. Int64? sellVolume,
  22. double? volumeRatio,
})

Implementation

factory SnapshotMessage({
  $fixnum.Int64? ts,
  $core.String? code,
  $core.String? exchange,
  $core.double? open,
  $core.double? high,
  $core.double? low,
  $core.double? close,
  $core.String? tickType,
  $core.double? changePrice,
  $core.double? changeRate,
  $core.String? changeType,
  $core.double? averagePrice,
  $fixnum.Int64? volume,
  $fixnum.Int64? totalVolume,
  $fixnum.Int64? amount,
  $fixnum.Int64? totalAmount,
  $core.double? yesterdayVolume,
  $core.double? buyPrice,
  $core.double? buyVolume,
  $core.double? sellPrice,
  $fixnum.Int64? sellVolume,
  $core.double? volumeRatio,
}) {
  final $result = create();
  if (ts != null) {
    $result.ts = ts;
  }
  if (code != null) {
    $result.code = code;
  }
  if (exchange != null) {
    $result.exchange = exchange;
  }
  if (open != null) {
    $result.open = open;
  }
  if (high != null) {
    $result.high = high;
  }
  if (low != null) {
    $result.low = low;
  }
  if (close != null) {
    $result.close = close;
  }
  if (tickType != null) {
    $result.tickType = tickType;
  }
  if (changePrice != null) {
    $result.changePrice = changePrice;
  }
  if (changeRate != null) {
    $result.changeRate = changeRate;
  }
  if (changeType != null) {
    $result.changeType = changeType;
  }
  if (averagePrice != null) {
    $result.averagePrice = averagePrice;
  }
  if (volume != null) {
    $result.volume = volume;
  }
  if (totalVolume != null) {
    $result.totalVolume = totalVolume;
  }
  if (amount != null) {
    $result.amount = amount;
  }
  if (totalAmount != null) {
    $result.totalAmount = totalAmount;
  }
  if (yesterdayVolume != null) {
    $result.yesterdayVolume = yesterdayVolume;
  }
  if (buyPrice != null) {
    $result.buyPrice = buyPrice;
  }
  if (buyVolume != null) {
    $result.buyVolume = buyVolume;
  }
  if (sellPrice != null) {
    $result.sellPrice = sellPrice;
  }
  if (sellVolume != null) {
    $result.sellVolume = sellVolume;
  }
  if (volumeRatio != null) {
    $result.volumeRatio = volumeRatio;
  }
  return $result;
}