toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, Object?>{
      'tid': tid ?? -1,
      'timestamp': timestamp ?? -1,
      'stack': stack?.map((f) => f).toList(),
      if (vmTag case final vmTagValue?) 'vmTag': vmTagValue,
      if (userTag case final userTagValue?) 'userTag': userTagValue,
      if (truncated case final truncatedValue?) 'truncated': truncatedValue,
      if (identityHashCode case final identityHashCodeValue?)
        'identityHashCode': identityHashCodeValue,
      if (classId case final classIdValue?) 'classId': classIdValue,
    };