toJson method
Implementation
@override
Map<String, Object?> toJson() => {
'status': 'awaiting-confirmation',
'candidateId': candidateId,
'storeId': storeId,
'protocolVersion': protocolVersion,
'inspectedAt': inspectedAt,
'bytes': bytes,
'snapshots': snapshots
.map((snapshot) => snapshot.toJson())
.toList(growable: false),
};