models/match_certainty_json library

Lenient readers for the install-match certainty fields (confidenceScore, matchedFactors, attributionMethod, competingLinks).

These fields are informational, so a missing or unexpected value is read as null rather than failing the whole install response or deep link.

Functions

doubleFromJsonOrNull(Object? json) → double?
Reads a JSON number as a double.
intFromJsonOrNull(Object? json) → int?
Reads a JSON number as an int, truncating a double (2.0 → 2).
stringFromJsonOrNull(Object? json) → String?
Reads a JSON string.
stringListFromJsonOrNull(Object? json) → List<String>?
Reads a JSON array of strings, skipping any element that is not a string.