MsgCreateWhoIs constructor Null safety

MsgCreateWhoIs(
  1. {String? creator,
  2. PubKey? pubkey,
  3. List<int>? didDocument,
  4. WhoIsType? whoisType}
)

Implementation

factory MsgCreateWhoIs({
  $core.String? creator,
  $14.PubKey? pubkey,
  $core.List<$core.int>? didDocument,
  $9.WhoIsType? whoisType,
}) {
  final _result = create();
  if (creator != null) {
    _result.creator = creator;
  }
  if (pubkey != null) {
    _result.pubkey = pubkey;
  }
  if (didDocument != null) {
    _result.didDocument = didDocument;
  }
  if (whoisType != null) {
    _result.whoisType = whoisType;
  }
  return _result;
}