toJson method

Map<String, dynamic> toJson()

Implementation

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