Log constructor

Log({
  1. String? id,
  2. Timestamp? createdAt,
  3. Timestamp? loggedAt,
  4. Trace? trace,
  5. String? message,
  6. String? userId,
  7. DeviceInfo? deviceInfo,
  8. PlatformType? platformType,
  9. LogLevel? level,
  10. String? exception,
  11. String? information,
  12. String? serviceName,
  13. Iterable<Trace>? stackTrace,
  14. String? groupId,
  15. bool? admin,
  16. bool? nuntioInternal,
  17. 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;
}