toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, Object?>{
      'type': type,
      'id': id ?? '',
      'number': number ?? '',
      'name': name ?? '',
      'isSystemIsolate': isSystemIsolate ?? false,
      'isolateGroupId': isolateGroupId ?? '',
      'isolateFlags': isolateFlags?.map((f) => f.toJson()).toList(),
      'startTime': startTime ?? -1,
      'runnable': runnable ?? false,
      'livePorts': livePorts ?? -1,
      'pauseOnExit': pauseOnExit ?? false,
      'pauseEvent': pauseEvent?.toJson(),
      'libraries': libraries?.map((f) => f.toJson()).toList(),
      'breakpoints': breakpoints?.map((f) => f.toJson()).toList(),
      'exceptionPauseMode': exceptionPauseMode ?? '',
      if (rootLib?.toJson() case final rootLibValue?) 'rootLib': rootLibValue,
      if (error?.toJson() case final errorValue?) 'error': errorValue,
      if (extensionRPCs?.map((f) => f).toList()
          case final extensionRPCsValue?)
        'extensionRPCs': extensionRPCsValue,
    };