encode static method
Implementation
static Map<String, dynamic> encode(SecretIdShareOptions value) {
switch (value) {
case SecretIdShareOptionsAllAvailable entity:
Map<String, dynamic> entityJson = SecretIdShareOptionsAllAvailable.encode(entity);
entityJson["kotlinType"] = "com.icure.cardinal.sdk.crypto.entities.SecretIdShareOptions.AllAvailable";
return entityJson;
case SecretIdShareOptionsUseExactly entity:
Map<String, dynamic> entityJson = SecretIdShareOptionsUseExactly.encode(entity);
entityJson["kotlinType"] = "com.icure.cardinal.sdk.crypto.entities.SecretIdShareOptions.UseExactly";
return entityJson;
}
}