EventTicketClass.fromJson constructor

EventTicketClass.fromJson(
  1. Map json_
)

Implementation

EventTicketClass.fromJson(core.Map json_)
    : this(
        allowMultipleUsersPerObject:
            json_.containsKey('allowMultipleUsersPerObject')
                ? json_['allowMultipleUsersPerObject'] as core.bool
                : null,
        appLinkData: json_.containsKey('appLinkData')
            ? AppLinkData.fromJson(
                json_['appLinkData'] as core.Map<core.String, core.dynamic>)
            : null,
        callbackOptions: json_.containsKey('callbackOptions')
            ? CallbackOptions.fromJson(json_['callbackOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        classTemplateInfo: json_.containsKey('classTemplateInfo')
            ? ClassTemplateInfo.fromJson(json_['classTemplateInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        confirmationCodeLabel: json_.containsKey('confirmationCodeLabel')
            ? json_['confirmationCodeLabel'] as core.String
            : null,
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        customConfirmationCodeLabel: json_
                .containsKey('customConfirmationCodeLabel')
            ? LocalizedString.fromJson(json_['customConfirmationCodeLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
        customGateLabel: json_.containsKey('customGateLabel')
            ? LocalizedString.fromJson(json_['customGateLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
        customRowLabel: json_.containsKey('customRowLabel')
            ? LocalizedString.fromJson(json_['customRowLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
        customSeatLabel: json_.containsKey('customSeatLabel')
            ? LocalizedString.fromJson(json_['customSeatLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
        customSectionLabel: json_.containsKey('customSectionLabel')
            ? LocalizedString.fromJson(json_['customSectionLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
        dateTime: json_.containsKey('dateTime')
            ? EventDateTime.fromJson(
                json_['dateTime'] as core.Map<core.String, core.dynamic>)
            : null,
        enableSmartTap: json_.containsKey('enableSmartTap')
            ? json_['enableSmartTap'] as core.bool
            : null,
        eventId: json_.containsKey('eventId')
            ? json_['eventId'] as core.String
            : null,
        eventName: json_.containsKey('eventName')
            ? LocalizedString.fromJson(
                json_['eventName'] as core.Map<core.String, core.dynamic>)
            : null,
        finePrint: json_.containsKey('finePrint')
            ? LocalizedString.fromJson(
                json_['finePrint'] as core.Map<core.String, core.dynamic>)
            : null,
        gateLabel: json_.containsKey('gateLabel')
            ? json_['gateLabel'] as core.String
            : null,
        heroImage: json_.containsKey('heroImage')
            ? Image.fromJson(
                json_['heroImage'] as core.Map<core.String, core.dynamic>)
            : null,
        hexBackgroundColor: json_.containsKey('hexBackgroundColor')
            ? json_['hexBackgroundColor'] as core.String
            : null,
        homepageUri: json_.containsKey('homepageUri')
            ? Uri.fromJson(
                json_['homepageUri'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        imageModulesData: json_.containsKey('imageModulesData')
            ? (json_['imageModulesData'] as core.List)
                .map((value) => ImageModuleData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        infoModuleData: json_.containsKey('infoModuleData')
            ? InfoModuleData.fromJson(json_['infoModuleData']
                as core.Map<core.String, core.dynamic>)
            : null,
        issuerName: json_.containsKey('issuerName')
            ? json_['issuerName'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        linksModuleData: json_.containsKey('linksModuleData')
            ? LinksModuleData.fromJson(json_['linksModuleData']
                as core.Map<core.String, core.dynamic>)
            : null,
        localizedIssuerName: json_.containsKey('localizedIssuerName')
            ? LocalizedString.fromJson(json_['localizedIssuerName']
                as core.Map<core.String, core.dynamic>)
            : null,
        locations: json_.containsKey('locations')
            ? (json_['locations'] as core.List)
                .map((value) => LatLongPoint.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        logo: json_.containsKey('logo')
            ? Image.fromJson(
                json_['logo'] as core.Map<core.String, core.dynamic>)
            : null,
        messages: json_.containsKey('messages')
            ? (json_['messages'] as core.List)
                .map((value) => Message.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        multipleDevicesAndHoldersAllowedStatus: json_
                .containsKey('multipleDevicesAndHoldersAllowedStatus')
            ? json_['multipleDevicesAndHoldersAllowedStatus'] as core.String
            : null,
        redemptionIssuers: json_.containsKey('redemptionIssuers')
            ? (json_['redemptionIssuers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        review: json_.containsKey('review')
            ? Review.fromJson(
                json_['review'] as core.Map<core.String, core.dynamic>)
            : null,
        reviewStatus: json_.containsKey('reviewStatus')
            ? json_['reviewStatus'] as core.String
            : null,
        rowLabel: json_.containsKey('rowLabel')
            ? json_['rowLabel'] as core.String
            : null,
        seatLabel: json_.containsKey('seatLabel')
            ? json_['seatLabel'] as core.String
            : null,
        sectionLabel: json_.containsKey('sectionLabel')
            ? json_['sectionLabel'] as core.String
            : null,
        securityAnimation: json_.containsKey('securityAnimation')
            ? SecurityAnimation.fromJson(json_['securityAnimation']
                as core.Map<core.String, core.dynamic>)
            : null,
        textModulesData: json_.containsKey('textModulesData')
            ? (json_['textModulesData'] as core.List)
                .map((value) => TextModuleData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        venue: json_.containsKey('venue')
            ? EventVenue.fromJson(
                json_['venue'] as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
        viewUnlockRequirement: json_.containsKey('viewUnlockRequirement')
            ? json_['viewUnlockRequirement'] as core.String
            : null,
        wideLogo: json_.containsKey('wideLogo')
            ? Image.fromJson(
                json_['wideLogo'] as core.Map<core.String, core.dynamic>)
            : null,
        wordMark: json_.containsKey('wordMark')
            ? Image.fromJson(
                json_['wordMark'] as core.Map<core.String, core.dynamic>)
            : null,
      );