fromData static method

Implementation

static SignatureV2Descriptor fromData(SignatureV2DescriptorDataArgs data) {
  if (data.single != null) {
    return SignatureV2Descriptor(SignatureV2Single.fromData(data.single!));
  }

  // if (data.Multi != null) {
  //   return new SignatureV2Descriptor(SignatureV2Multi.FromData(data.Multi));
  // }

  throw Exception("must be one of single or multi");
}