toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.author != null) {
    json[r'author'] = this.author;
  } else {
    json[r'author'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.primaryMethod != null) {
    json[r'primary_method'] = this.primaryMethod;
  } else {
    json[r'primary_method'] = null;
  }
  if (this.secondaryMethods != null) {
    json[r'secondary_methods'] = this.secondaryMethods;
  } else {
    json[r'secondary_methods'] = null;
  }
  if (this.confidence != null) {
    json[r'confidence'] = this.confidence;
  } else {
    json[r'confidence'] = null;
  }
  if (this.classificationEvidence != null) {
    json[r'classification_evidence'] = this.classificationEvidence;
  } else {
    json[r'classification_evidence'] = null;
  }
  if (this.classifierVersion != null) {
    json[r'classifier_version'] = this.classifierVersion;
  } else {
    json[r'classifier_version'] = null;
  }
  if (this.classifiedAt != null) {
    json[r'classified_at'] = this.classifiedAt;
  } else {
    json[r'classified_at'] = null;
  }
  if (this.family != null) {
    json[r'family'] = this.family;
  } else {
    json[r'family'] = null;
  }
  if (this.paramsB != null) {
    json[r'params_b'] = this.paramsB;
  } else {
    json[r'params_b'] = null;
  }
  if (this.isGguf != null) {
    json[r'is_gguf'] = this.isGguf;
  } else {
    json[r'is_gguf'] = null;
  }
  if (this.isMoe != null) {
    json[r'is_moe'] = this.isMoe;
  } else {
    json[r'is_moe'] = null;
  }
  if (this.isMultimodal != null) {
    json[r'is_multimodal'] = this.isMultimodal;
  } else {
    json[r'is_multimodal'] = null;
  }
  if (this.isImageGen != null) {
    json[r'is_image_gen'] = this.isImageGen;
  } else {
    json[r'is_image_gen'] = null;
  }
  if (this.isSecondOrder != null) {
    json[r'is_second_order'] = this.isSecondOrder;
  } else {
    json[r'is_second_order'] = null;
  }
  if (this.downloads != null) {
    json[r'downloads'] = this.downloads;
  } else {
    json[r'downloads'] = null;
  }
  if (this.likes != null) {
    json[r'likes'] = this.likes;
  } else {
    json[r'likes'] = null;
  }
  if (this.createdAt != null) {
    json[r'created_at'] = this.createdAt;
  } else {
    json[r'created_at'] = null;
  }
  if (this.lastModified != null) {
    json[r'last_modified'] = this.lastModified;
  } else {
    json[r'last_modified'] = null;
  }
  if (this.firstSeenAt != null) {
    json[r'first_seen_at'] = this.firstSeenAt;
  } else {
    json[r'first_seen_at'] = null;
  }
  if (this.lastSeenAt != null) {
    json[r'last_seen_at'] = this.lastSeenAt;
  } else {
    json[r'last_seen_at'] = null;
  }
  if (this.isDelisted != null) {
    json[r'is_delisted'] = this.isDelisted;
  } else {
    json[r'is_delisted'] = null;
  }
  if (this.daysSinceGone != null) {
    json[r'days_since_gone'] = this.daysSinceGone;
  } else {
    json[r'days_since_gone'] = null;
  }
  if (this.readmeText != null) {
    json[r'readme_text'] = this.readmeText;
  } else {
    json[r'readme_text'] = null;
  }
  if (this.readmeStatus != null) {
    json[r'readme_status'] = this.readmeStatus;
  } else {
    json[r'readme_status'] = null;
  }
  if (this.tags != null) {
    json[r'tags'] = this.tags;
  } else {
    json[r'tags'] = null;
  }
  if (this.pipelineTag != null) {
    json[r'pipeline_tag'] = this.pipelineTag;
  } else {
    json[r'pipeline_tag'] = null;
  }
  if (this.libraryName != null) {
    json[r'library_name'] = this.libraryName;
  } else {
    json[r'library_name'] = null;
  }
  if (this.yamlBaseModel != null) {
    json[r'yaml_base_model'] = this.yamlBaseModel;
  } else {
    json[r'yaml_base_model'] = null;
  }
  if (this.yamlLanguage != null) {
    json[r'yaml_language'] = this.yamlLanguage;
  } else {
    json[r'yaml_language'] = null;
  }
  if (this.yamlDatasets != null) {
    json[r'yaml_datasets'] = this.yamlDatasets;
  } else {
    json[r'yaml_datasets'] = null;
  }
  if (this.yamlLicense != null) {
    json[r'yaml_license'] = this.yamlLicense;
  } else {
    json[r'yaml_license'] = null;
  }
  if (this.yamlTags != null) {
    json[r'yaml_tags'] = this.yamlTags;
  } else {
    json[r'yaml_tags'] = null;
  }
  if (this.filesCount != null) {
    json[r'files_count'] = this.filesCount;
  } else {
    json[r'files_count'] = null;
  }
  if (this.totalSizeBytes != null) {
    json[r'total_size_bytes'] = this.totalSizeBytes;
  } else {
    json[r'total_size_bytes'] = null;
  }
  if (this.largestFileBytes != null) {
    json[r'largest_file_bytes'] = this.largestFileBytes;
  } else {
    json[r'largest_file_bytes'] = null;
  }
  if (this.smallestModelBytes != null) {
    json[r'smallest_model_bytes'] = this.smallestModelBytes;
  } else {
    json[r'smallest_model_bytes'] = null;
  }
  if (this.quantizations != null) {
    json[r'quantizations'] = this.quantizations;
  } else {
    json[r'quantizations'] = null;
  }
  if (this.hasMmproj != null) {
    json[r'has_mmproj'] = this.hasMmproj;
  } else {
    json[r'has_mmproj'] = null;
  }
  if (this.hubDownloadsAllTime != null) {
    json[r'hub_downloads_all_time'] = this.hubDownloadsAllTime;
  } else {
    json[r'hub_downloads_all_time'] = null;
  }
  if (this.hubTrendingScore != null) {
    json[r'hub_trending_score'] = this.hubTrendingScore;
  } else {
    json[r'hub_trending_score'] = null;
  }
  if (this.hubRealParamsM != null) {
    json[r'hub_real_params_m'] = this.hubRealParamsM;
  } else {
    json[r'hub_real_params_m'] = null;
  }
  if (this.hubContextLength != null) {
    json[r'hub_context_length'] = this.hubContextLength;
  } else {
    json[r'hub_context_length'] = null;
  }
  if (this.hubSiblingsCount != null) {
    json[r'hub_siblings_count'] = this.hubSiblingsCount;
  } else {
    json[r'hub_siblings_count'] = null;
  }
  if (this.hubProviderCount != null) {
    json[r'hub_provider_count'] = this.hubProviderCount;
  } else {
    json[r'hub_provider_count'] = null;
  }
  if (this.hubProviderNames != null) {
    json[r'hub_provider_names'] = this.hubProviderNames;
  } else {
    json[r'hub_provider_names'] = null;
  }
  if (this.hubEnrichedAt != null) {
    json[r'hub_enriched_at'] = this.hubEnrichedAt;
  } else {
    json[r'hub_enriched_at'] = null;
  }
    json[r'files'] = this.files;
  if (this.benchmarks != null) {
    json[r'benchmarks'] = this.benchmarks;
  } else {
    json[r'benchmarks'] = null;
  }
  if (this.authorSummary != null) {
    json[r'author_summary'] = this.authorSummary;
  } else {
    json[r'author_summary'] = null;
  }
  return json;
}