decodeFlintPagePayload function
Implementation
Map<String, dynamic> decodeFlintPagePayload(String value) {
final decoded = jsonDecode(value);
if (decoded is Map<String, dynamic>) return decoded;
throw StateError('Invalid Flint page payload.');
}