toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (recordMode != null) 'recordMode': recordMode,
    if (traceBufferSizeInKb != null)
      'traceBufferSizeInKb': traceBufferSizeInKb,
    if (enableSampling != null) 'enableSampling': enableSampling,
    if (enableSystrace != null) 'enableSystrace': enableSystrace,
    if (enableArgumentFilter != null)
      'enableArgumentFilter': enableArgumentFilter,
    if (includedCategories != null)
      'includedCategories': [...?includedCategories],
    if (excludedCategories != null)
      'excludedCategories': [...?excludedCategories],
    if (syntheticDelays != null) 'syntheticDelays': [...?syntheticDelays],
    if (memoryDumpConfig != null)
      'memoryDumpConfig': memoryDumpConfig!.toJson(),
  };
}