WriteLogEntriesRequest.fromJson constructor
WriteLogEntriesRequest.fromJson(
- Map json_
Implementation
WriteLogEntriesRequest.fromJson(core.Map json_)
: this(
dryRun:
json_.containsKey('dryRun') ? json_['dryRun'] as core.bool : null,
entries: json_.containsKey('entries')
? (json_['entries'] as core.List)
.map((value) => LogEntry.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: 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,
partialSuccess: json_.containsKey('partialSuccess')
? json_['partialSuccess'] as core.bool
: null,
resource: json_.containsKey('resource')
? MonitoredResource.fromJson(
json_['resource'] as core.Map<core.String, core.dynamic>)
: null,
);