Subscription.fromJson constructor
Subscription.fromJson(
- Map json_
Implementation
Subscription.fromJson(core.Map json_)
: this(
authority: json_.containsKey('authority')
? json_['authority'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
eventTypes: json_.containsKey('eventTypes')
? (json_['eventTypes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
expireTime: json_.containsKey('expireTime')
? json_['expireTime'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notificationEndpoint: json_.containsKey('notificationEndpoint')
? NotificationEndpoint.fromJson(json_['notificationEndpoint']
as core.Map<core.String, core.dynamic>)
: null,
payloadOptions: json_.containsKey('payloadOptions')
? PayloadOptions.fromJson(json_['payloadOptions']
as core.Map<core.String, core.dynamic>)
: null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
suspensionReason: json_.containsKey('suspensionReason')
? json_['suspensionReason'] as core.String
: null,
targetResource: json_.containsKey('targetResource')
? json_['targetResource'] as core.String
: null,
ttl: json_.containsKey('ttl') ? json_['ttl'] as core.String : null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);