GenesisState constructor

GenesisState({
  1. Params? params,
  2. Iterable<Code>? codes,
  3. Iterable<Contract>? contracts,
  4. Iterable<Sequence>? sequences,
  5. Iterable<GenesisState_GenMsgs>? genMsgs,
})

Implementation

factory GenesisState({
  $3.Params? params,
  $core.Iterable<Code>? codes,
  $core.Iterable<Contract>? contracts,
  $core.Iterable<Sequence>? sequences,
  $core.Iterable<GenesisState_GenMsgs>? genMsgs,
}) {
  final _result = create();
  if (params != null) {
    _result.params = params;
  }
  if (codes != null) {
    _result.codes.addAll(codes);
  }
  if (contracts != null) {
    _result.contracts.addAll(contracts);
  }
  if (sequences != null) {
    _result.sequences.addAll(sequences);
  }
  if (genMsgs != null) {
    _result.genMsgs.addAll(genMsgs);
  }
  return _result;
}