mirrored_repositories/git-touch/packages/github_trending/lib
import 'package:json_annotation/json_annotation.dart';

part 'model.g.dart';

@JsonSerializable()
class GithubTrendingRepository {
  GithubTrendingRepository();
  factory GithubTrendingRepository.fromJson(Map<String, dynamic> json) =>
      _$GithubTrendingRepositoryFromJson(json);
  String? author;
  String? name;
  String? avatar;
  String? url;
  String? description;
  String? language;
  String? languageColor;
  int? stars;
  int? forks;
  int? currentPeriodStars;
  List<GithubTrendingRepositoryBuiltBy>? builtBy;
}

@JsonSerializable()
class GithubTrendingRepositoryBuiltBy {
  GithubTrendingRepositoryBuiltBy();
  factory GithubTrendingRepositoryBuiltBy.fromJson(Map<String, dynamic> json) =>
      _$GithubTrendingRepositoryBuiltByFromJson(json);
  String? href;
  String? avatar;
  String? username;
}

@JsonSerializable()
class GithubTrendingDeveloper {
  GithubTrendingDeveloper();
  factory GithubTrendingDeveloper.fromJson(Map<String, dynamic> json) =>
      _$GithubTrendingDeveloperFromJson(json);
  String? username;
  String? name;
  String? type;
  String? url;
  String? avatar;
  GithubTrendingDeveloperRepository? repo;
}

@JsonSerializable()
class GithubTrendingDeveloperRepository {
  GithubTrendingDeveloperRepository();
  factory GithubTrendingDeveloperRepository.fromJson(
          Map<String, dynamic> json) =>
      _$GithubTrendingDeveloperRepositoryFromJson(json);
  String? name;
  String? description;
  String? url;
}
