toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'stdout': stdout,
  'stderr': stderr,
  'exitCode': exitCode,
  if (interrupted) 'interrupted': true,
  if (isImage) 'isImage': true,
  if (backgroundTaskId != null) 'backgroundTaskId': backgroundTaskId,
  if (returnCodeInterpretation != null)
    'returnCodeInterpretation': returnCodeInterpretation,
  if (persistedOutputPath != null) 'persistedOutputPath': persistedOutputPath,
  if (persistedOutputSize != null) 'persistedOutputSize': persistedOutputSize,
};