all profiles as lists, better handling, stop using a fallback profile for broken submissions without one

This commit is contained in:
stopflock
2025-10-24 17:31:04 -05:00
parent f1f145a35f
commit 0db4c0f80d
5 changed files with 143 additions and 259 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ class PendingUpload {
direction: j['dir'],
profile: j['profile'] is Map<String, dynamic>
? NodeProfile.fromJson(j['profile'])
: NodeProfile.genericAlpr(),
: throw Exception('PendingUpload missing required profile data - this should never happen'),
operatorProfile: j['operatorProfile'] != null
? OperatorProfile.fromJson(j['operatorProfile'])
: null,