ReturnPolicyOnline.fromJson constructor
ReturnPolicyOnline.fromJson(
- Map json_
Implementation
ReturnPolicyOnline.fromJson(core.Map json_)
: this(
countries: json_.containsKey('countries')
? (json_['countries'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
itemConditions: json_.containsKey('itemConditions')
? (json_['itemConditions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
label:
json_.containsKey('label') ? json_['label'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
policy: json_.containsKey('policy')
? ReturnPolicyOnlinePolicy.fromJson(
json_['policy'] as core.Map<core.String, core.dynamic>)
: null,
restockingFee: json_.containsKey('restockingFee')
? ReturnPolicyOnlineRestockingFee.fromJson(
json_['restockingFee'] as core.Map<core.String, core.dynamic>)
: null,
returnMethods: json_.containsKey('returnMethods')
? (json_['returnMethods'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
returnPolicyId: json_.containsKey('returnPolicyId')
? json_['returnPolicyId'] as core.String
: null,
returnPolicyUri: json_.containsKey('returnPolicyUri')
? json_['returnPolicyUri'] as core.String
: null,
returnReasonCategoryInfo:
json_.containsKey('returnReasonCategoryInfo')
? (json_['returnReasonCategoryInfo'] as core.List)
.map((value) =>
ReturnPolicyOnlineReturnReasonCategoryInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);