toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, Object?>{
      'type': type,
      'kind': kind ?? '',
      'timestamp': timestamp ?? -1,
      if (isolateGroup?.toJson() case final isolateGroupValue?)
        'isolateGroup': isolateGroupValue,
      if (isolate?.toJson() case final isolateValue?) 'isolate': isolateValue,
      if (vm?.toJson() case final vmValue?) 'vm': vmValue,
      if (breakpoint?.toJson() case final breakpointValue?)
        'breakpoint': breakpointValue,
      if (pauseBreakpoints?.map((f) => f.toJson()).toList()
          case final pauseBreakpointsValue?)
        'pauseBreakpoints': pauseBreakpointsValue,
      if (topFrame?.toJson() case final topFrameValue?)
        'topFrame': topFrameValue,
      if (exception?.toJson() case final exceptionValue?)
        'exception': exceptionValue,
      if (bytes case final bytesValue?) 'bytes': bytesValue,
      if (inspectee?.toJson() case final inspecteeValue?)
        'inspectee': inspecteeValue,
      if (gcType case final gcTypeValue?) 'gcType': gcTypeValue,
      if (extensionRPC case final extensionRPCValue?)
        'extensionRPC': extensionRPCValue,
      if (extensionKind case final extensionKindValue?)
        'extensionKind': extensionKindValue,
      if (extensionData?.data case final extensionDataValue?)
        'extensionData': extensionDataValue,
      if (timelineEvents?.map((f) => f.toJson()).toList()
          case final timelineEventsValue?)
        'timelineEvents': timelineEventsValue,
      if (updatedStreams?.map((f) => f).toList()
          case final updatedStreamsValue?)
        'updatedStreams': updatedStreamsValue,
      if (atAsyncSuspension case final atAsyncSuspensionValue?)
        'atAsyncSuspension': atAsyncSuspensionValue,
      if (status case final statusValue?) 'status': statusValue,
      if (reloadFailureReason case final reloadFailureReasonValue?)
        'reloadFailureReason': reloadFailureReasonValue,
      if (logRecord?.toJson() case final logRecordValue?)
        'logRecord': logRecordValue,
      if (service case final serviceValue?) 'service': serviceValue,
      if (method case final methodValue?) 'method': methodValue,
      if (alias case final aliasValue?) 'alias': aliasValue,
      if (flag case final flagValue?) 'flag': flagValue,
      if (newValue case final newValueValue?) 'newValue': newValueValue,
      if (last case final lastValue?) 'last': lastValue,
      if (updatedTag case final updatedTagValue?)
        'updatedTag': updatedTagValue,
      if (previousTag case final previousTagValue?)
        'previousTag': previousTagValue,
      if (cpuSamples?.toJson() case final cpuSamplesValue?)
        'cpuSamples': cpuSamplesValue,
      if (data case final dataValue?) 'data': dataValue,
    };