PaymentMethodDomainResourcePaymentMethodStatus.fromJson constructor

PaymentMethodDomainResourcePaymentMethodStatus.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDomainResourcePaymentMethodStatus.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDomainResourcePaymentMethodStatus(
    status: BillingMeterStatus.fromJson(map['status']),
    statusDetails: map['status_details'] == null
        ? null
        : PaymentMethodDomainResourcePaymentMethodStatusDetails.fromJson(
            map['status_details']),
  );
}