src/main/java/com/hedera/hashgraph/identity/hcs/vc/HcsVcDocumentBase.java
/**
   * Converts a VC document in JSON format into a {@link HcsVcDocumentBase} object.
   * Please note this conversion respects only the fields of the base VC document. All other fields are ignored.
   *
   * @param <U>                    The type of the credential subject.
   * @param <E>                    The type of the vc document.
   * @param json                   The VC document as JSON string.
   * @param credentialSubjectClass The type of the credential subject inside.
   * @return The {@link HcsVcDocumentBase} object.
   */
Converts a VC document in JSON format into a  HcsVcDocumentBase object.
Please note this conversion respects only the fields of the base VC document. All other fields are ignored.

@param                     The type of the credential subject.
@param                     The type of the vc document.
@param json                   The VC document as JSON string.
@param credentialSubjectClass The type of the credential subject inside.
@return The  HcsVcDocumentBase object.
Converts a VC document in JSON format into a HcsVcDocumentBase object . Please note this conversion respects only the fields of the base VC document . All other fields are ignored . @param The type of the credential subject . @param The type of the vc document . @param json The VC document as JSON string . @param credentialSubjectClass The type of the credential subject inside . @return The HcsVcDocumentBase object .
public static <U extends CredentialSubject, E extends HcsVcDocumentBase<U>> HcsVcDocumentBase<U> fromJson(final String json,
                                                                            final Class<E> vcDocumentClass,
                                                                            final Class<U> credentialSubjectClass) {
    Type envelopeType = TypeToken.getParameterized(vcDocumentClass, credentialSubjectClass).getType();
    return JsonUtils.getGson().fromJson(json, envelopeType);
  }
public static < U extends CredentialSubject , E extends HcsVcDocumentBase < U > > HcsVcDocumentBase < U > fromJson ( final String json , final Class < E > vcDocumentClass , final Class < U > credentialSubjectClass ) { Type envelopeType = TypeToken . getParameterized ( vcDocumentClass , credentialSubjectClass ) . getType ( ) ; return JsonUtils . getGson ( ) . fromJson ( json , envelopeType ) ; }
Converts a VC document in JSON format into a {@link HcsVcDocumentBase} object.
Converts a VC document in JSON format into a { @link HcsVcDocumentBase } object .