ConfirmationTokenShipping.fromJson constructor

ConfirmationTokenShipping.fromJson(
  1. Object? json
)

Implementation

factory ConfirmationTokenShipping.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ConfirmationTokenShipping(
    address: Address.fromJson(map['address']),
    name: (map['name'] as String),
    phone: map['phone'] == null ? null : (map['phone'] as String),
  );
}