encode static method

Map<String, dynamic> encode(
  1. SecretIdShareOptions value
)

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;
	}
}