LogBucket.fromJson constructor
LogBucket.fromJson(
- Map json_
Implementation
LogBucket.fromJson(core.Map json_)
: this(
analyticsEnabled: json_.containsKey('analyticsEnabled')
? json_['analyticsEnabled'] as core.bool
: null,
cmekSettings: json_.containsKey('cmekSettings')
? CmekSettings.fromJson(
json_['cmekSettings'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
indexConfigs: json_.containsKey('indexConfigs')
? (json_['indexConfigs'] as core.List)
.map((value) => IndexConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
lifecycleState: json_.containsKey('lifecycleState')
? json_['lifecycleState'] as core.String
: null,
locked:
json_.containsKey('locked') ? json_['locked'] as core.bool : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
restrictedFields: json_.containsKey('restrictedFields')
? (json_['restrictedFields'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
retentionDays: json_.containsKey('retentionDays')
? json_['retentionDays'] as core.int
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);