OrderPickupDetails.fromJson constructor
OrderPickupDetails.fromJson(
- Map json_
Implementation
OrderPickupDetails.fromJson(core.Map json_)
: this(
address: json_.containsKey('address')
? OrderAddress.fromJson(
json_['address'] as core.Map<core.String, core.dynamic>)
: null,
collectors: json_.containsKey('collectors')
? (json_['collectors'] as core.List)
.map((value) => OrderPickupDetailsCollector.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
locationId: json_.containsKey('locationId')
? json_['locationId'] as core.String
: null,
pickupType: json_.containsKey('pickupType')
? json_['pickupType'] as core.String
: null,
);