AccountDeclineOn.fromJson constructor

AccountDeclineOn.fromJson(
  1. Object? json
)

Implementation

factory AccountDeclineOn.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountDeclineOn(
    avsFailure:
        map['avs_failure'] == null ? null : (map['avs_failure'] as bool),
    cvcFailure:
        map['cvc_failure'] == null ? null : (map['cvc_failure'] as bool),
  );
}