PaymentMethodCashapp.fromJson constructor

PaymentMethodCashapp.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodCashapp.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodCashapp(
    buyerId: map['buyer_id'] == null ? null : (map['buyer_id'] as String),
    cashtag: map['cashtag'] == null ? null : (map['cashtag'] as String),
  );
}