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