toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'keyPiece': keyPiece.toJson(),
'debugData': debugData.map((e) => e.toJson()).toList(),
if (budget != null) 'budget': budget,
if (aggregationCoordinatorOrigin != null)
'aggregationCoordinatorOrigin': aggregationCoordinatorOrigin,
};
}