fromJson static method
Allows you to deserialize object.
Implementation
static DocumentRequestMDL? fromJson(jsonObject) {
if (jsonObject == null) return null;
var docType = jsonObject["docType"];
if (docType == "org.iso.18013.5.1.mDL") {
return DocumentRequest18013MDL.fromJson(jsonObject);
}
var result = DocumentRequestMDL(docType);
result._namespaces = (jsonObject["namespaces"] as List)
.map((item) => NameSpaceMDL.fromJson(item)!)
.toList();
return result;
}