DisputeEvidence.fromJson constructor

DisputeEvidence.fromJson(
  1. Object? json
)

Implementation

factory DisputeEvidence.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return DisputeEvidence(
    accessActivityLog: map['access_activity_log'] == null
        ? null
        : (map['access_activity_log'] as String),
    billingAddress: map['billing_address'] == null
        ? null
        : (map['billing_address'] as String),
    cancellationPolicy: map['cancellation_policy'] == null
        ? null
        : FileOrId.fromJson(map['cancellation_policy']),
    cancellationPolicyDisclosure:
        map['cancellation_policy_disclosure'] == null
            ? null
            : (map['cancellation_policy_disclosure'] as String),
    cancellationRebuttal: map['cancellation_rebuttal'] == null
        ? null
        : (map['cancellation_rebuttal'] as String),
    customerCommunication: map['customer_communication'] == null
        ? null
        : FileOrId.fromJson(map['customer_communication']),
    customerEmailAddress: map['customer_email_address'] == null
        ? null
        : (map['customer_email_address'] as String),
    customerName: map['customer_name'] == null
        ? null
        : (map['customer_name'] as String),
    customerPurchaseIp: map['customer_purchase_ip'] == null
        ? null
        : (map['customer_purchase_ip'] as String),
    customerSignature: map['customer_signature'] == null
        ? null
        : FileOrId.fromJson(map['customer_signature']),
    duplicateChargeDocumentation:
        map['duplicate_charge_documentation'] == null
            ? null
            : FileOrId.fromJson(map['duplicate_charge_documentation']),
    duplicateChargeExplanation: map['duplicate_charge_explanation'] == null
        ? null
        : (map['duplicate_charge_explanation'] as String),
    duplicateChargeId: map['duplicate_charge_id'] == null
        ? null
        : (map['duplicate_charge_id'] as String),
    productDescription: map['product_description'] == null
        ? null
        : (map['product_description'] as String),
    receipt:
        map['receipt'] == null ? null : FileOrId.fromJson(map['receipt']),
    refundPolicy: map['refund_policy'] == null
        ? null
        : FileOrId.fromJson(map['refund_policy']),
    refundPolicyDisclosure: map['refund_policy_disclosure'] == null
        ? null
        : (map['refund_policy_disclosure'] as String),
    refundRefusalExplanation: map['refund_refusal_explanation'] == null
        ? null
        : (map['refund_refusal_explanation'] as String),
    serviceDate:
        map['service_date'] == null ? null : (map['service_date'] as String),
    serviceDocumentation: map['service_documentation'] == null
        ? null
        : FileOrId.fromJson(map['service_documentation']),
    shippingAddress: map['shipping_address'] == null
        ? null
        : (map['shipping_address'] as String),
    shippingCarrier: map['shipping_carrier'] == null
        ? null
        : (map['shipping_carrier'] as String),
    shippingDate: map['shipping_date'] == null
        ? null
        : (map['shipping_date'] as String),
    shippingDocumentation: map['shipping_documentation'] == null
        ? null
        : FileOrId.fromJson(map['shipping_documentation']),
    shippingTrackingNumber: map['shipping_tracking_number'] == null
        ? null
        : (map['shipping_tracking_number'] as String),
    uncategorizedFile: map['uncategorized_file'] == null
        ? null
        : FileOrId.fromJson(map['uncategorized_file']),
    uncategorizedText: map['uncategorized_text'] == null
        ? null
        : (map['uncategorized_text'] as String),
  );
}