LogEntry.fromJson constructor
LogEntry.fromJson(
- Map json_
Implementation
LogEntry.fromJson(core.Map json_)
: this(
errorGroups: json_.containsKey('errorGroups')
? (json_['errorGroups'] as core.List)
.map((value) => LogErrorGroup.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
httpRequest: json_.containsKey('httpRequest')
? HttpRequest.fromJson(
json_['httpRequest'] as core.Map<core.String, core.dynamic>)
: null,
insertId: json_.containsKey('insertId')
? json_['insertId'] as core.String
: null,
jsonPayload: json_.containsKey('jsonPayload')
? json_['jsonPayload'] as core.Map<core.String, core.dynamic>
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
logName: json_.containsKey('logName')
? json_['logName'] as core.String
: null,
metadata: json_.containsKey('metadata')
? MonitoredResourceMetadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
operation: json_.containsKey('operation')
? LogEntryOperation.fromJson(
json_['operation'] as core.Map<core.String, core.dynamic>)
: null,
protoPayload: json_.containsKey('protoPayload')
? json_['protoPayload'] as core.Map<core.String, core.dynamic>
: null,
receiveTimestamp: json_.containsKey('receiveTimestamp')
? json_['receiveTimestamp'] as core.String
: null,
resource: json_.containsKey('resource')
? MonitoredResource.fromJson(
json_['resource'] as core.Map<core.String, core.dynamic>)
: null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
sourceLocation: json_.containsKey('sourceLocation')
? LogEntrySourceLocation.fromJson(json_['sourceLocation']
as core.Map<core.String, core.dynamic>)
: null,
spanId: json_.containsKey('spanId')
? json_['spanId'] as core.String
: null,
split: json_.containsKey('split')
? LogSplit.fromJson(
json_['split'] as core.Map<core.String, core.dynamic>)
: null,
textPayload: json_.containsKey('textPayload')
? json_['textPayload'] as core.String
: null,
timestamp: json_.containsKey('timestamp')
? json_['timestamp'] as core.String
: null,
trace:
json_.containsKey('trace') ? json_['trace'] as core.String : null,
traceSampled: json_.containsKey('traceSampled')
? json_['traceSampled'] as core.bool
: null,
);