toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'logName': logName,
  'resource': ?resource?.toJson(),
  'protoPayload': ?protoPayload?.toJson(),
  'textPayload': ?textPayload,
  'jsonPayload': ?jsonPayload?.toJson(),
  'timestamp': ?timestamp?.toJson(),
  'receiveTimestamp': ?receiveTimestamp?.toJson(),
  if (severity.isNotDefault) 'severity': severity.toJson(),
  if (insertId.isNotDefault) 'insertId': insertId,
  'httpRequest': ?httpRequest?.toJson(),
  if (labels.isNotDefault) 'labels': labels,
  'operation': ?operation?.toJson(),
  if (trace.isNotDefault) 'trace': trace,
  if (spanId.isNotDefault) 'spanId': spanId,
  if (traceSampled.isNotDefault) 'traceSampled': traceSampled,
  'sourceLocation': ?sourceLocation?.toJson(),
  'split': ?split?.toJson(),
};