PaymentMethodDetailsPix.fromJson constructor

PaymentMethodDetailsPix.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsPix.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsPix(
      bankTransactionId: map['bank_transaction_id'] == null
          ? null
          : (map['bank_transaction_id'] as String));
}