CommissionRate constructor

CommissionRate({
  1. Decimal? rate,
  2. Decimal? maxRate,
  3. Decimal? maxChangeRate,
})

Implementation

factory CommissionRate({
  Decimal? rate,
  Decimal? maxRate,
  Decimal? maxChangeRate,
}) {
  final _result = create();
  if (rate != null) {
    _result.rate = rate;
  }
  if (maxRate != null) {
    _result.maxRate = maxRate;
  }
  if (maxChangeRate != null) {
    _result.maxChangeRate = maxChangeRate;
  }
  return _result;
}