PaymentMethodDetailsP24.fromJson constructor

PaymentMethodDetailsP24.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsP24.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsP24(
    bank: map['bank'] == null
        ? null
        : PaymentMethodDetailsP24Bank.fromJson(map['bank']),
    reference: map['reference'] == null ? null : (map['reference'] as String),
    verifiedName: map['verified_name'] == null
        ? null
        : (map['verified_name'] as String),
  );
}