IssuingDisputeEvidence.fromJson constructor

IssuingDisputeEvidence.fromJson(
  1. Object? json
)

Implementation

factory IssuingDisputeEvidence.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingDisputeEvidence(
    canceled: map['canceled'] == null
        ? null
        : IssuingDisputeCanceledEvidence.fromJson(map['canceled']),
    duplicate: map['duplicate'] == null
        ? null
        : IssuingDisputeDuplicateEvidence.fromJson(map['duplicate']),
    fraudulent: map['fraudulent'] == null
        ? null
        : IssuingDisputeFraudulentEvidence.fromJson(map['fraudulent']),
    merchandiseNotAsDescribed: map['merchandise_not_as_described'] == null
        ? null
        : IssuingDisputeMerchandiseNotAsDescribedEvidence.fromJson(
            map['merchandise_not_as_described']),
    notReceived: map['not_received'] == null
        ? null
        : IssuingDisputeNotReceivedEvidence.fromJson(map['not_received']),
    other: map['other'] == null
        ? null
        : IssuingDisputeOtherEvidence.fromJson(map['other']),
    reason: IssuingDisputeEvidenceReason.fromJson(map['reason']),
    serviceNotAsDescribed: map['service_not_as_described'] == null
        ? null
        : IssuingDisputeServiceNotAsDescribedEvidence.fromJson(
            map['service_not_as_described']),
  );
}