TestOrderPickupDetails.fromJson constructor

TestOrderPickupDetails.fromJson(
  1. Map json_
)

Implementation

TestOrderPickupDetails.fromJson(core.Map json_)
    : this(
        locationCode: json_.containsKey('locationCode')
            ? json_['locationCode'] as core.String
            : null,
        pickupLocationAddress: json_.containsKey('pickupLocationAddress')
            ? TestOrderAddress.fromJson(json_['pickupLocationAddress']
                as core.Map<core.String, core.dynamic>)
            : null,
        pickupLocationType: json_.containsKey('pickupLocationType')
            ? json_['pickupLocationType'] as core.String
            : null,
        pickupPersons: json_.containsKey('pickupPersons')
            ? (json_['pickupPersons'] as core.List)
                .map((value) => TestOrderPickupDetailsPickupPerson.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );