encode static method

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

Implementation

static Map<String, dynamic> encode(Article value) {
	switch (value) {
		case EncryptedArticle entity:
			Map<String, dynamic> entityJson = EncryptedArticle.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.EncryptedArticle";
			return entityJson;
		case DecryptedArticle entity:
			Map<String, dynamic> entityJson = DecryptedArticle.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.DecryptedArticle";
			return entityJson;
	}
}