Class ParcelServiceCollectionSerializer
package |
Default |
---|
__construct(\ParcelServiceSerializer $parcelServiceSerializer)
deserialize(string|array $parcelServicesData) : \ParcelServiceCollection
string|array
Parcel services data. If string, it must be a valid json.
\ParcelServiceCollection
Deserialized parcel service data.
encode(\ParcelServiceCollection $parcelServices) : string
string
Encoded parcel services.
serialize(\ParcelServiceCollection $parcelServices) : array
array
Serialized parcel services.
parcelServiceSerializer : \ParcelServiceSerializer