CalendarListEntry.fromJson constructor

CalendarListEntry.fromJson(
  1. Map json_
)

Implementation

CalendarListEntry.fromJson(core.Map json_)
    : this(
        accessRole: json_.containsKey('accessRole')
            ? json_['accessRole'] as core.String
            : null,
        backgroundColor: json_.containsKey('backgroundColor')
            ? json_['backgroundColor'] as core.String
            : null,
        colorId: json_.containsKey('colorId')
            ? json_['colorId'] as core.String
            : null,
        conferenceProperties: json_.containsKey('conferenceProperties')
            ? ConferenceProperties.fromJson(json_['conferenceProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        defaultReminders: json_.containsKey('defaultReminders')
            ? (json_['defaultReminders'] as core.List)
                .map((value) => EventReminder.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        foregroundColor: json_.containsKey('foregroundColor')
            ? json_['foregroundColor'] as core.String
            : null,
        hidden:
            json_.containsKey('hidden') ? json_['hidden'] as core.bool : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        notificationSettings: json_.containsKey('notificationSettings')
            ? CalendarListEntryNotificationSettings.fromJson(
                json_['notificationSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        primary: json_.containsKey('primary')
            ? json_['primary'] as core.bool
            : null,
        selected: json_.containsKey('selected')
            ? json_['selected'] as core.bool
            : null,
        summary: json_.containsKey('summary')
            ? json_['summary'] as core.String
            : null,
        summaryOverride: json_.containsKey('summaryOverride')
            ? json_['summaryOverride'] as core.String
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
      );