VersionIssueCounts.fromJson constructor

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

Implementation

factory VersionIssueCounts.fromJson(Map<String, Object?> json) {
  return VersionIssueCounts(
    customFieldUsage: (json[r'customFieldUsage'] as List<Object?>?)
            ?.map((i) => VersionUsageInCustomField.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    issueCountWithCustomFieldsShowingVersion:
        (json[r'issueCountWithCustomFieldsShowingVersion'] as num?)?.toInt(),
    issuesAffectedCount: (json[r'issuesAffectedCount'] as num?)?.toInt(),
    issuesFixedCount: (json[r'issuesFixedCount'] as num?)?.toInt(),
    self: json[r'self'] as String?,
  );
}