IssuingDisputeMerchandiseNotAsDescribedEvidence.fromJson constructor

IssuingDisputeMerchandiseNotAsDescribedEvidence.fromJson(
  1. Object? json
)

Implementation

factory IssuingDisputeMerchandiseNotAsDescribedEvidence.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingDisputeMerchandiseNotAsDescribedEvidence(
    additionalDocumentation: map['additional_documentation'] == null
        ? null
        : FileOrId.fromJson(map['additional_documentation']),
    explanation:
        map['explanation'] == null ? null : (map['explanation'] as String),
    receivedAt: map['received_at'] == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(
            (map['received_at'] as int).toInt()),
    returnDescription: map['return_description'] == null
        ? null
        : (map['return_description'] as String),
    returnStatus: map['return_status'] == null
        ? null
        : IssuingDisputeCanceledEvidenceReturnStatus.fromJson(
            map['return_status']),
    returnedAt: map['returned_at'] == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(
            (map['returned_at'] as int).toInt()),
  );
}