lenientJson property
bool
get
lenientJson
An instance of iCure SDK is initialized for working as a specific user in a single group. However, the user credentials may match multiple users in different groups (but at most one per group). If that is the case, this function will be used to pick the actual user for which the sdk will be initialized.
This is mandatory in multi-group applications, where a single user could exist in multiple groups. If this parameter is null and the user credentials match multiple users the api initialisation will fail. In single-group applications this parameter won't be used, so it can be left as null. If true the SDK will use lenient deserialization of the entities coming from the backend.
Implementation
// GroupSelector? get groupSelector;
/// If true the SDK will use lenient deserialization of the entities coming from the backend.
//
// This could be helpful when developing using the nightly deployments of the backend, as the SDK will ignore minor changes to the data model.
//
// This option however could cause loss of data when connecting with incompatible versions of the backend, and should be disabled in production.
bool get lenientJson;