PaymentMethod constructor

PaymentMethod({
  1. String? id,
  2. Int64? maxTradePeriod,
  3. Int64? maxTradeLimit,
  4. Iterable<String>? supportedAssetCodes,
})

Implementation

factory PaymentMethod({
  $core.String? id,
  $fixnum.Int64? maxTradePeriod,
  $fixnum.Int64? maxTradeLimit,
  $core.Iterable<$core.String>? supportedAssetCodes,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (maxTradePeriod != null) {
    $result.maxTradePeriod = maxTradePeriod;
  }
  if (maxTradeLimit != null) {
    $result.maxTradeLimit = maxTradeLimit;
  }
  if (supportedAssetCodes != null) {
    $result.supportedAssetCodes.addAll(supportedAssetCodes);
  }
  return $result;
}