ProjectInsight.fromJson constructor

ProjectInsight.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ProjectInsight.fromJson(Map<String, Object?> json) {
  return ProjectInsight(
    lastIssueUpdateTime:
        DateTime.tryParse(json[r'lastIssueUpdateTime'] as String? ?? ''),
    totalIssueCount: (json[r'totalIssueCount'] as num?)?.toInt(),
  );
}