toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'locationId': locationId,
'scope': scope?.toJson(),
'type': type,
'keyDate': keyDate,
'blind': blind,
'status': status,
'progress': progress?.toJson(),
'createdAt': createdAt,
'createdBy': createdBy?.toJson(),
'source': source,
'updatedAt': updatedAt,
'review': review?.toJson(),
'closing': closing?.toJson(),
'cancellation': cancellation?.toJson(),
'totals': ?totals?.toJson(),
if (warnings != null) 'warnings': [for (final w in warnings!) w.toJson()],
'seal': ?seal?.toJson(),
'checksum': ?checksum,
'inventoryAsOf': ?inventoryAsOf,
'pdf': ?pdf?.toJson(),
};