toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'request': request.toJson(),
'reason': reason.toJson(),
if (parentFrame != null) 'parentFrame': parentFrame!.toJson(),
if (blockedFrame != null) 'blockedFrame': blockedFrame!.toJson(),
};
}