Events.fromJson constructor
Events.fromJson(
- Map json_
Implementation
Events.fromJson(core.Map json_)
: this(
accessRole: json_.containsKey('accessRole')
? json_['accessRole'] as core.String
: null,
defaultReminders: json_.containsKey('defaultReminders')
? (json_['defaultReminders'] as core.List)
.map((value) => EventReminder.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
items: json_.containsKey('items')
? (json_['items'] as core.List)
.map((value) => Event.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
nextPageToken: json_.containsKey('nextPageToken')
? json_['nextPageToken'] as core.String
: null,
nextSyncToken: json_.containsKey('nextSyncToken')
? json_['nextSyncToken'] as core.String
: null,
summary: json_.containsKey('summary')
? json_['summary'] as core.String
: null,
timeZone: json_.containsKey('timeZone')
? json_['timeZone'] as core.String
: null,
updated: json_.containsKey('updated')
? core.DateTime.parse(json_['updated'] as core.String)
: null,
);