GenerateKeyResponse constructor

GenerateKeyResponse({
  1. Iterable<JsonWebKey>? key,
  2. Struct? didDocument,
})

Implementation

factory GenerateKeyResponse({
  $core.Iterable<JsonWebKey>? key,
  $0.Struct? didDocument,
}) {
  final _result = create();
  if (key != null) {
    _result.key.addAll(key);
  }
  if (didDocument != null) {
    _result.didDocument = didDocument;
  }
  return _result;
}