copyWith method
Creates a copy of this event with updated values
Implementation
NewRelicLogEvent copyWith({
String? eventName,
String? eventMessage,
Map<String, Object>? parameters,
Map<String, dynamic>? attributes,
String? entityName,
String? entityType,
String? host,
String? environment,
String? traceId,
String? spanId,
}) {
return NewRelicLogEvent(
eventName: eventName ?? this.eventName,
eventMessage: eventMessage ?? this.eventMessage,
parameters: parameters ?? this.parameters,
attributes: attributes ?? this.attributes,
entityName: entityName ?? this.entityName,
entityType: entityType ?? this.entityType,
host: host ?? this.host,
environment: environment ?? this.environment,
traceId: traceId ?? this.traceId,
spanId: spanId ?? this.spanId,
);
}