encode static method

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

Implementation

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