TradeCurrency constructor

TradeCurrency({
  1. String? code,
  2. String? name,
  3. CryptoCurrency? cryptoCurrency,
  4. TraditionalCurrency? traditionalCurrency,
})

Implementation

factory TradeCurrency({
  $core.String? code,
  $core.String? name,
  CryptoCurrency? cryptoCurrency,
  TraditionalCurrency? traditionalCurrency,
}) {
  final $result = create();
  if (code != null) {
    $result.code = code;
  }
  if (name != null) {
    $result.name = name;
  }
  if (cryptoCurrency != null) {
    $result.cryptoCurrency = cryptoCurrency;
  }
  if (traditionalCurrency != null) {
    $result.traditionalCurrency = traditionalCurrency;
  }
  return $result;
}