OrderPromotion.fromJson constructor
OrderPromotion.fromJson(
- Map json_
Implementation
OrderPromotion.fromJson(core.Map json_)
: this(
applicableItems: json_.containsKey('applicableItems')
? (json_['applicableItems'] as core.List)
.map((value) => OrderPromotionItem.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
appliedItems: json_.containsKey('appliedItems')
? (json_['appliedItems'] as core.List)
.map((value) => OrderPromotionItem.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
funder: json_.containsKey('funder')
? json_['funder'] as core.String
: null,
merchantPromotionId: json_.containsKey('merchantPromotionId')
? json_['merchantPromotionId'] as core.String
: null,
priceValue: json_.containsKey('priceValue')
? Price.fromJson(
json_['priceValue'] as core.Map<core.String, core.dynamic>)
: null,
shortTitle: json_.containsKey('shortTitle')
? json_['shortTitle'] as core.String
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
subtype: json_.containsKey('subtype')
? json_['subtype'] as core.String
: null,
taxValue: json_.containsKey('taxValue')
? Price.fromJson(
json_['taxValue'] as core.Map<core.String, core.dynamic>)
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);