DelegationResponse constructor

DelegationResponse({
  1. Delegation? delegation,
  2. Coin? balance,
})

Implementation

factory DelegationResponse({
  Delegation? delegation,
  $6.Coin? balance,
}) {
  final _result = create();
  if (delegation != null) {
    _result.delegation = delegation;
  }
  if (balance != null) {
    _result.balance = balance;
  }
  return _result;
}