TransitClass.fromJson constructor
TransitClass.fromJson(
- Map json_
Implementation
TransitClass.fromJson(core.Map json_)
: this(
activationOptions: json_.containsKey('activationOptions')
? ActivationOptions.fromJson(json_['activationOptions']
as core.Map<core.String, core.dynamic>)
: null,
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,
countryCode: json_.containsKey('countryCode')
? json_['countryCode'] as core.String
: null,
customCarriageLabel: json_.containsKey('customCarriageLabel')
? LocalizedString.fromJson(json_['customCarriageLabel']
as core.Map<core.String, core.dynamic>)
: null,
customCoachLabel: json_.containsKey('customCoachLabel')
? LocalizedString.fromJson(json_['customCoachLabel']
as core.Map<core.String, core.dynamic>)
: null,
customConcessionCategoryLabel: json_
.containsKey('customConcessionCategoryLabel')
? LocalizedString.fromJson(json_['customConcessionCategoryLabel']
as core.Map<core.String, core.dynamic>)
: null,
customConfirmationCodeLabel: json_
.containsKey('customConfirmationCodeLabel')
? LocalizedString.fromJson(json_['customConfirmationCodeLabel']
as core.Map<core.String, core.dynamic>)
: null,
customDiscountMessageLabel:
json_.containsKey('customDiscountMessageLabel')
? LocalizedString.fromJson(json_['customDiscountMessageLabel']
as core.Map<core.String, core.dynamic>)
: null,
customFareClassLabel: json_.containsKey('customFareClassLabel')
? LocalizedString.fromJson(json_['customFareClassLabel']
as core.Map<core.String, core.dynamic>)
: null,
customFareNameLabel: json_.containsKey('customFareNameLabel')
? LocalizedString.fromJson(json_['customFareNameLabel']
as core.Map<core.String, core.dynamic>)
: null,
customOtherRestrictionsLabel: json_
.containsKey('customOtherRestrictionsLabel')
? LocalizedString.fromJson(json_['customOtherRestrictionsLabel']
as core.Map<core.String, core.dynamic>)
: null,
customPlatformLabel: json_.containsKey('customPlatformLabel')
? LocalizedString.fromJson(json_['customPlatformLabel']
as core.Map<core.String, core.dynamic>)
: null,
customPurchaseFaceValueLabel: json_
.containsKey('customPurchaseFaceValueLabel')
? LocalizedString.fromJson(json_['customPurchaseFaceValueLabel']
as core.Map<core.String, core.dynamic>)
: null,
customPurchasePriceLabel:
json_.containsKey('customPurchasePriceLabel')
? LocalizedString.fromJson(json_['customPurchasePriceLabel']
as core.Map<core.String, core.dynamic>)
: null,
customPurchaseReceiptNumberLabel:
json_.containsKey('customPurchaseReceiptNumberLabel')
? LocalizedString.fromJson(
json_['customPurchaseReceiptNumberLabel']
as core.Map<core.String, core.dynamic>)
: null,
customRouteRestrictionsDetailsLabel:
json_.containsKey('customRouteRestrictionsDetailsLabel')
? LocalizedString.fromJson(
json_['customRouteRestrictionsDetailsLabel']
as core.Map<core.String, core.dynamic>)
: null,
customRouteRestrictionsLabel: json_
.containsKey('customRouteRestrictionsLabel')
? LocalizedString.fromJson(json_['customRouteRestrictionsLabel']
as core.Map<core.String, core.dynamic>)
: null,
customSeatLabel: json_.containsKey('customSeatLabel')
? LocalizedString.fromJson(json_['customSeatLabel']
as core.Map<core.String, core.dynamic>)
: null,
customTicketNumberLabel: json_.containsKey('customTicketNumberLabel')
? LocalizedString.fromJson(json_['customTicketNumberLabel']
as core.Map<core.String, core.dynamic>)
: null,
customTimeRestrictionsLabel: json_
.containsKey('customTimeRestrictionsLabel')
? LocalizedString.fromJson(json_['customTimeRestrictionsLabel']
as core.Map<core.String, core.dynamic>)
: null,
customTransitTerminusNameLabel: json_
.containsKey('customTransitTerminusNameLabel')
? LocalizedString.fromJson(json_['customTransitTerminusNameLabel']
as core.Map<core.String, core.dynamic>)
: null,
customZoneLabel: json_.containsKey('customZoneLabel')
? LocalizedString.fromJson(json_['customZoneLabel']
as core.Map<core.String, core.dynamic>)
: null,
enableSingleLegItinerary:
json_.containsKey('enableSingleLegItinerary')
? json_['enableSingleLegItinerary'] as core.bool
: null,
enableSmartTap: json_.containsKey('enableSmartTap')
? json_['enableSmartTap'] as core.bool
: 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,
languageOverride: json_.containsKey('languageOverride')
? json_['languageOverride'] 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,
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,
transitOperatorName: json_.containsKey('transitOperatorName')
? LocalizedString.fromJson(json_['transitOperatorName']
as core.Map<core.String, core.dynamic>)
: null,
transitType: json_.containsKey('transitType')
? json_['transitType'] as core.String
: null,
version: json_.containsKey('version')
? json_['version'] as core.String
: null,
viewUnlockRequirement: json_.containsKey('viewUnlockRequirement')
? json_['viewUnlockRequirement'] as core.String
: null,
watermark: json_.containsKey('watermark')
? Image.fromJson(
json_['watermark'] as core.Map<core.String, core.dynamic>)
: 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,
);