encode static method
Implementation
static Map<String, dynamic> encode(SecureDelegationKeyMap value) {
switch (value) {
case EncryptedSecureDelegationKeyMap entity:
Map<String, dynamic> entityJson = EncryptedSecureDelegationKeyMap.encode(entity);
entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.EncryptedSecureDelegationKeyMap";
return entityJson;
case DecryptedSecureDelegationKeyMap entity:
Map<String, dynamic> entityJson = DecryptedSecureDelegationKeyMap.encode(entity);
entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.DecryptedSecureDelegationKeyMap";
return entityJson;
}
}