// GENERATED CODE - DO NOT MODIFY BY HAND part of 'gitea.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GiteaUser _$GiteaUserFromJson(Map json) { return GiteaUser() ..id = json['id'] as int ..login = json['login'] as String ..fullName = json['full_name'] as String ..avatarUrl = json['avatar_url'] as String ..created = json['created'] == null ? null : DateTime.parse(json['created'] as String); } Map _$GiteaUserToJson(GiteaUser instance) => { 'id': instance.id, 'login': instance.login, 'full_name': instance.fullName, 'avatar_url': instance.avatarUrl, 'created': instance.created?.toIso8601String(), }; GiteaRepository _$GiteaRepositoryFromJson(Map json) { return GiteaRepository() ..id = json['id'] as int ..owner = json['owner'] == null ? null : GiteaUser.fromJson(json['owner'] as Map) ..name = json['name'] as String ..description = json['description'] as String ..starsCount = json['stars_count'] as int ..forksCount = json['forks_count'] as int ..updatedAt = json['updated_at'] == null ? null : DateTime.parse(json['updated_at'] as String) ..website = json['website'] as String ..size = json['size'] as int ..openIssuesCount = json['open_issues_count'] as int ..openPrCounter = json['open_pr_counter'] as int; } Map _$GiteaRepositoryToJson(GiteaRepository instance) => { 'id': instance.id, 'owner': instance.owner, 'name': instance.name, 'description': instance.description, 'stars_count': instance.starsCount, 'forks_count': instance.forksCount, 'updated_at': instance.updatedAt?.toIso8601String(), 'website': instance.website, 'size': instance.size, 'open_issues_count': instance.openIssuesCount, 'open_pr_counter': instance.openPrCounter, }; GiteaTree _$GiteaTreeFromJson(Map json) { return GiteaTree() ..type = json['type'] as String ..name = json['name'] as String ..path = json['path'] as String ..size = json['size'] as int ..downloadUrl = json['download_url'] as String; } Map _$GiteaTreeToJson(GiteaTree instance) => { 'type': instance.type, 'name': instance.name, 'path': instance.path, 'size': instance.size, 'download_url': instance.downloadUrl, }; GiteaBlob _$GiteaBlobFromJson(Map json) { return GiteaBlob() ..type = json['type'] as String ..name = json['name'] as String ..path = json['path'] as String ..size = json['size'] as int ..downloadUrl = json['download_url'] as String ..content = json['content'] as String; } Map _$GiteaBlobToJson(GiteaBlob instance) => { 'type': instance.type, 'name': instance.name, 'path': instance.path, 'size': instance.size, 'download_url': instance.downloadUrl, 'content': instance.content, };