SourceShipping.fromJson constructor
SourceShipping.fromJson(
- Object? json
Implementation
factory SourceShipping.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceShipping(
address: SessionShippingAddress.fromJson(map['address']),
carrier: map['carrier'] == null ? null : (map['carrier'] as String),
name: map['name'] == null ? null : (map['name'] as String),
phone: map['phone'] == null ? null : (map['phone'] as String),
trackingNumber: map['tracking_number'] == null
? null
: (map['tracking_number'] as String),
);
}