toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id.toJson(),
'initiatorUrl': initiatorUrl,
'destination': destination,
'type': type,
'timestamp': timestamp.toJson(),
'depth': depth,
'completedAttempts': completedAttempts,
'body': body,
'status': status.toJson(),
};
}