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