DisputeEvidenceDetails.fromJson constructor

DisputeEvidenceDetails.fromJson(
  1. Object? json
)

Implementation

factory DisputeEvidenceDetails.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return DisputeEvidenceDetails(
    dueBy: map['due_by'] == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch((map['due_by'] as int).toInt()),
    hasEvidence: (map['has_evidence'] as bool),
    pastDue: (map['past_due'] as bool),
    submissionCount: (map['submission_count'] as num).toInt(),
  );
}