Log constructor
Log({
- String? id,
- Timestamp? createdAt,
- Timestamp? loggedAt,
- Trace? trace,
- String? message,
- String? userId,
- DeviceInfo? deviceInfo,
- PlatformType? platformType,
- LogLevel? level,
- String? exception,
- String? information,
- String? serviceName,
- Iterable<
Trace> ? stackTrace, - String? groupId,
- bool? admin,
- bool? nuntioInternal,
- Timestamp? expiresAt,
Implementation
factory Log({
$core.String? id,
$1.Timestamp? createdAt,
$1.Timestamp? loggedAt,
Trace? trace,
$core.String? message,
$core.String? userId,
$2.DeviceInfo? deviceInfo,
$2.PlatformType? platformType,
LogLevel? level,
$core.String? exception,
$core.String? information,
$core.String? serviceName,
$core.Iterable<Trace>? stackTrace,
$core.String? groupId,
$core.bool? admin,
$core.bool? nuntioInternal,
$1.Timestamp? expiresAt,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (loggedAt != null) {
_result.loggedAt = loggedAt;
}
if (trace != null) {
_result.trace = trace;
}
if (message != null) {
_result.message = message;
}
if (userId != null) {
_result.userId = userId;
}
if (deviceInfo != null) {
_result.deviceInfo = deviceInfo;
}
if (platformType != null) {
_result.platformType = platformType;
}
if (level != null) {
_result.level = level;
}
if (exception != null) {
_result.exception = exception;
}
if (information != null) {
_result.information = information;
}
if (serviceName != null) {
_result.serviceName = serviceName;
}
if (stackTrace != null) {
_result.stackTrace.addAll(stackTrace);
}
if (groupId != null) {
_result.groupId = groupId;
}
if (admin != null) {
_result.admin = admin;
}
if (nuntioInternal != null) {
_result.nuntioInternal = nuntioInternal;
}
if (expiresAt != null) {
_result.expiresAt = expiresAt;
}
return _result;
}