fromDataItem
fun fromDataItem(dataItem: DataItem, documentTypeRepository: DocumentTypeRepository? = null, fallbackDocumentType: DocumentType? = null): Claim
Creates a Claim previously serialized with Claim.toDataItem.
Return
a Claim.
Parameters
dataItem
a DataItem.
documentTypeRepository
if not null, will be used to look up a DocumentAttribute for the claim.
fallbackDocumentType
if not null, will be used to look up a DocumentAttribute if not found in documentTypeRepository (e.g., from org.multipaz.document.Document.getDocumentType).