IssuingDisputeCreateOptionsEvidence.fromJson constructor

IssuingDisputeCreateOptionsEvidence.fromJson(
  1. Object? json
)

Implementation

factory IssuingDisputeCreateOptionsEvidence.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingDisputeCreateOptionsEvidence(
    canceled: map['canceled'] == null
        ? null
        : DisputeCanceled.fromJson(map['canceled']),
    duplicate: map['duplicate'] == null
        ? null
        : DisputeDuplicate.fromJson(map['duplicate']),
    fraudulent: map['fraudulent'] == null
        ? null
        : DisputeFraudulent.fromJson(map['fraudulent']),
    merchandiseNotAsDescribed: map['merchandise_not_as_described'] == null
        ? null
        : DisputeMerchandiseNotAsDescribed.fromJson(
            map['merchandise_not_as_described']),
    notReceived: map['not_received'] == null
        ? null
        : DisputeNotReceived.fromJson(map['not_received']),
    other: map['other'] == null ? null : DisputeOther.fromJson(map['other']),
    reason: map['reason'] == null
        ? null
        : IssuingDisputeEvidenceReason.fromJson(map['reason']),
    serviceNotAsDescribed: map['service_not_as_described'] == null
        ? null
        : DisputeServiceNotAsDescribed.fromJson(
            map['service_not_as_described']),
  );
}