toJson method
Implementation
Map<String, Object?> toJson() => {
if (evaluateName != null) 'evaluateName': evaluateName,
if (fullTypeName != null) 'fullTypeName': fullTypeName,
if (innerException != null) 'innerException': innerException,
if (message != null) 'message': message,
if (stackTrace != null) 'stackTrace': stackTrace,
if (typeName != null) 'typeName': typeName,
};