Event.fromJson constructor

Event.fromJson(
  1. Map json_
)

Implementation

Event.fromJson(core.Map json_)
    : this(
        anyoneCanAddSelf: json_.containsKey('anyoneCanAddSelf')
            ? json_['anyoneCanAddSelf'] as core.bool
            : null,
        attachments: json_.containsKey('attachments')
            ? (json_['attachments'] as core.List)
                .map((value) => EventAttachment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        attendees: json_.containsKey('attendees')
            ? (json_['attendees'] as core.List)
                .map((value) => EventAttendee.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        attendeesOmitted: json_.containsKey('attendeesOmitted')
            ? json_['attendeesOmitted'] as core.bool
            : null,
        colorId: json_.containsKey('colorId')
            ? json_['colorId'] as core.String
            : null,
        conferenceData: json_.containsKey('conferenceData')
            ? ConferenceData.fromJson(json_['conferenceData']
                as core.Map<core.String, core.dynamic>)
            : null,
        created: json_.containsKey('created')
            ? core.DateTime.parse(json_['created'] as core.String)
            : null,
        creator: json_.containsKey('creator')
            ? EventCreator.fromJson(
                json_['creator'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        end: json_.containsKey('end')
            ? EventDateTime.fromJson(
                json_['end'] as core.Map<core.String, core.dynamic>)
            : null,
        endTimeUnspecified: json_.containsKey('endTimeUnspecified')
            ? json_['endTimeUnspecified'] as core.bool
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        eventType: json_.containsKey('eventType')
            ? json_['eventType'] as core.String
            : null,
        extendedProperties: json_.containsKey('extendedProperties')
            ? EventExtendedProperties.fromJson(json_['extendedProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        focusTimeProperties: json_.containsKey('focusTimeProperties')
            ? EventFocusTimeProperties.fromJson(json_['focusTimeProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        gadget: json_.containsKey('gadget')
            ? EventGadget.fromJson(
                json_['gadget'] as core.Map<core.String, core.dynamic>)
            : null,
        guestsCanInviteOthers: json_.containsKey('guestsCanInviteOthers')
            ? json_['guestsCanInviteOthers'] as core.bool
            : null,
        guestsCanModify: json_.containsKey('guestsCanModify')
            ? json_['guestsCanModify'] as core.bool
            : null,
        guestsCanSeeOtherGuests: json_.containsKey('guestsCanSeeOtherGuests')
            ? json_['guestsCanSeeOtherGuests'] as core.bool
            : null,
        hangoutLink: json_.containsKey('hangoutLink')
            ? json_['hangoutLink'] as core.String
            : null,
        htmlLink: json_.containsKey('htmlLink')
            ? json_['htmlLink'] as core.String
            : null,
        iCalUID: json_.containsKey('iCalUID')
            ? json_['iCalUID'] as core.String
            : 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,
        locked:
            json_.containsKey('locked') ? json_['locked'] as core.bool : null,
        organizer: json_.containsKey('organizer')
            ? EventOrganizer.fromJson(
                json_['organizer'] as core.Map<core.String, core.dynamic>)
            : null,
        originalStartTime: json_.containsKey('originalStartTime')
            ? EventDateTime.fromJson(json_['originalStartTime']
                as core.Map<core.String, core.dynamic>)
            : null,
        outOfOfficeProperties: json_.containsKey('outOfOfficeProperties')
            ? EventOutOfOfficeProperties.fromJson(
                json_['outOfOfficeProperties']
                    as core.Map<core.String, core.dynamic>)
            : null,
        privateCopy: json_.containsKey('privateCopy')
            ? json_['privateCopy'] as core.bool
            : null,
        recurrence: json_.containsKey('recurrence')
            ? (json_['recurrence'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        recurringEventId: json_.containsKey('recurringEventId')
            ? json_['recurringEventId'] as core.String
            : null,
        reminders: json_.containsKey('reminders')
            ? EventReminders.fromJson(
                json_['reminders'] as core.Map<core.String, core.dynamic>)
            : null,
        sequence: json_.containsKey('sequence')
            ? json_['sequence'] as core.int
            : null,
        source: json_.containsKey('source')
            ? EventSource.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        start: json_.containsKey('start')
            ? EventDateTime.fromJson(
                json_['start'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        summary: json_.containsKey('summary')
            ? json_['summary'] as core.String
            : null,
        transparency: json_.containsKey('transparency')
            ? json_['transparency'] as core.String
            : null,
        updated: json_.containsKey('updated')
            ? core.DateTime.parse(json_['updated'] as core.String)
            : null,
        visibility: json_.containsKey('visibility')
            ? json_['visibility'] as core.String
            : null,
        workingLocationProperties:
            json_.containsKey('workingLocationProperties')
                ? EventWorkingLocationProperties.fromJson(
                    json_['workingLocationProperties']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );