fromJSON static method
Implementation
static SecureDelegationKeyMap fromJSON(Map<String, dynamic> data) {
if (data["kotlinType"] == null) {
throw ArgumentError('Missing discriminator: kotlinType');
}
String discriminator = data["kotlinType"];
switch (discriminator) {
case "com.icure.cardinal.sdk.model.EncryptedSecureDelegationKeyMap":
return EncryptedSecureDelegationKeyMap.fromJSON(data);
case "com.icure.cardinal.sdk.model.DecryptedSecureDelegationKeyMap":
return DecryptedSecureDelegationKeyMap.fromJSON(data);
default:
throw ArgumentError('Invalid subclass $discriminator');
}
}