DelegationResponse constructor

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

Implementation

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