DisputePaymentMethodDetailsCard.fromJson constructor

DisputePaymentMethodDetailsCard.fromJson(
  1. Object? json
)

Implementation

factory DisputePaymentMethodDetailsCard.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return DisputePaymentMethodDetailsCard(
    brand: (map['brand'] as String),
    networkReasonCode: map['network_reason_code'] == null
        ? null
        : (map['network_reason_code'] as String),
  );
}