VerificationMethod constructor Null safety

VerificationMethod(
  1. {String? id,
  2. String? type,
  3. String? controller,
  4. Iterable<KeyValuePair>? publicKeyJwk,
  5. String? publicKeyBase58,
  6. List<int>? credentialJson}
)

Implementation

factory VerificationMethod({
  $core.String? id,
  $core.String? type,
  $core.String? controller,
  $core.Iterable<KeyValuePair>? publicKeyJwk,
  $core.String? publicKeyBase58,
  $core.List<$core.int>? credentialJson,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (type != null) {
    _result.type = type;
  }
  if (controller != null) {
    _result.controller = controller;
  }
  if (publicKeyJwk != null) {
    _result.publicKeyJwk.addAll(publicKeyJwk);
  }
  if (publicKeyBase58 != null) {
    _result.publicKeyBase58 = publicKeyBase58;
  }
  if (credentialJson != null) {
    _result.credentialJson = credentialJson;
  }
  return _result;
}