encode static method

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

Implementation

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