toJson method
Implementation
Map<String, Object?> toJson() => {
if (cancellable != null) 'cancellable': cancellable,
if (message != null) 'message': message,
if (percentage != null) 'percentage': percentage,
'progressId': progressId,
if (requestId != null) 'requestId': requestId,
'title': title,
};