PaymentMethodDetailsCashapp.fromJson constructor

PaymentMethodDetailsCashapp.fromJson(
  1. Object? json
)

Implementation

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