LogEntry.fromJson constructor
LogEntry.fromJson(
- Map json_
Implementation
LogEntry.fromJson(core.Map json_)
: this(
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,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : 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,
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,
structPayload: json_.containsKey('structPayload')
? json_['structPayload'] 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,
);