LoyaltyClass.fromJson constructor
LoyaltyClass.fromJson(
- Map json_
Implementation
LoyaltyClass.fromJson(core.Map json_)
: this(
accountIdLabel: json_.containsKey('accountIdLabel')
? json_['accountIdLabel'] as core.String
: null,
accountNameLabel: json_.containsKey('accountNameLabel')
? json_['accountNameLabel'] as core.String
: 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,
discoverableProgram: json_.containsKey('discoverableProgram')
? DiscoverableProgram.fromJson(json_['discoverableProgram']
as core.Map<core.String, core.dynamic>)
: 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,
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,
localizedAccountIdLabel: json_.containsKey('localizedAccountIdLabel')
? LocalizedString.fromJson(json_['localizedAccountIdLabel']
as core.Map<core.String, core.dynamic>)
: null,
localizedAccountNameLabel:
json_.containsKey('localizedAccountNameLabel')
? LocalizedString.fromJson(json_['localizedAccountNameLabel']
as core.Map<core.String, core.dynamic>)
: null,
localizedIssuerName: json_.containsKey('localizedIssuerName')
? LocalizedString.fromJson(json_['localizedIssuerName']
as core.Map<core.String, core.dynamic>)
: null,
localizedProgramName: json_.containsKey('localizedProgramName')
? LocalizedString.fromJson(json_['localizedProgramName']
as core.Map<core.String, core.dynamic>)
: null,
localizedRewardsTier: json_.containsKey('localizedRewardsTier')
? LocalizedString.fromJson(json_['localizedRewardsTier']
as core.Map<core.String, core.dynamic>)
: null,
localizedRewardsTierLabel:
json_.containsKey('localizedRewardsTierLabel')
? LocalizedString.fromJson(json_['localizedRewardsTierLabel']
as core.Map<core.String, core.dynamic>)
: null,
localizedSecondaryRewardsTier: json_
.containsKey('localizedSecondaryRewardsTier')
? LocalizedString.fromJson(json_['localizedSecondaryRewardsTier']
as core.Map<core.String, core.dynamic>)
: null,
localizedSecondaryRewardsTierLabel:
json_.containsKey('localizedSecondaryRewardsTierLabel')
? LocalizedString.fromJson(
json_['localizedSecondaryRewardsTierLabel']
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,
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,
programLogo: json_.containsKey('programLogo')
? Image.fromJson(
json_['programLogo'] as core.Map<core.String, core.dynamic>)
: null,
programName: json_.containsKey('programName')
? json_['programName'] 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,
rewardsTier: json_.containsKey('rewardsTier')
? json_['rewardsTier'] as core.String
: null,
rewardsTierLabel: json_.containsKey('rewardsTierLabel')
? json_['rewardsTierLabel'] as core.String
: null,
secondaryRewardsTier: json_.containsKey('secondaryRewardsTier')
? json_['secondaryRewardsTier'] as core.String
: null,
secondaryRewardsTierLabel:
json_.containsKey('secondaryRewardsTierLabel')
? json_['secondaryRewardsTierLabel'] 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,
version: json_.containsKey('version')
? json_['version'] as core.String
: null,
viewUnlockRequirement: json_.containsKey('viewUnlockRequirement')
? json_['viewUnlockRequirement'] as core.String
: null,
wideProgramLogo: json_.containsKey('wideProgramLogo')
? Image.fromJson(json_['wideProgramLogo']
as core.Map<core.String, core.dynamic>)
: null,
wordMark: json_.containsKey('wordMark')
? Image.fromJson(
json_['wordMark'] as core.Map<core.String, core.dynamic>)
: null,
);