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