GitHubContent.fromJson constructor

GitHubContent.fromJson(
  1. Map<String, dynamic> json
)

Creates a GitHubContent from JSON data.

Implementation

factory GitHubContent.fromJson(Map<String, dynamic> json) => GitHubContent(
  name: json['name'] as String,
  path: json['path'] as String,
  size: json['size'] as int,
  url: json['url'] as String,
  downloadUrl: json['download_url'] as String?,
  type: json['type'] as String,
);