Rate constructor

Rate({
  1. String? base,
  2. String? target,
  3. String? rate,
  4. Erc20Asset? erc20Base,
  5. Erc20Asset? erc20Target,
  6. Int64? timestamp,
})

Implementation

factory Rate({
  $core.String? base,
  $core.String? target,
  $core.String? rate,
  $1.Erc20Asset? erc20Base,
  $1.Erc20Asset? erc20Target,
  $fixnum.Int64? timestamp,
}) {
  final result = create();
  if (base != null) result.base = base;
  if (target != null) result.target = target;
  if (rate != null) result.rate = rate;
  if (erc20Base != null) result.erc20Base = erc20Base;
  if (erc20Target != null) result.erc20Target = erc20Target;
  if (timestamp != null) result.timestamp = timestamp;
  return result;
}