getStringOrNull function
Null-preserving variants of getString/getInt/getDouble — for
optional fields where a missing key should stay null rather than
collapse to ""/0/0.0.
Implementation
String? getStringOrNull(dynamic value) => value == null ? null : getString(value);