/* Options: Date: 2024-11-21 21:14:49 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sharpscript.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryGitHubRepos.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GithubUser implements IConvertible { int? id; String? login; String? avatar_Url; String? url; int? followers; int? following; String? type; int? public_Gists; String? location; String? company; String? html_Url; int? public_Repos; DateTime? created_At; String? blog; String? email; String? name; bool? hireable; String? gravatar_Id; String? bio; GithubUser({this.id,this.login,this.avatar_Url,this.url,this.followers,this.following,this.type,this.public_Gists,this.location,this.company,this.html_Url,this.public_Repos,this.created_At,this.blog,this.email,this.name,this.hireable,this.gravatar_Id,this.bio}); GithubUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; login = json['login']; avatar_Url = json['avatar_Url']; url = json['url']; followers = json['followers']; following = json['following']; type = json['type']; public_Gists = json['public_Gists']; location = json['location']; company = json['company']; html_Url = json['html_Url']; public_Repos = json['public_Repos']; created_At = JsonConverters.fromJson(json['created_At'],'DateTime',context!); blog = json['blog']; email = json['email']; name = json['name']; hireable = json['hireable']; gravatar_Id = json['gravatar_Id']; bio = json['bio']; return this; } Map toJson() => { 'id': id, 'login': login, 'avatar_Url': avatar_Url, 'url': url, 'followers': followers, 'following': following, 'type': type, 'public_Gists': public_Gists, 'location': location, 'company': company, 'html_Url': html_Url, 'public_Repos': public_Repos, 'created_At': JsonConverters.toJson(created_At,'DateTime',context!), 'blog': blog, 'email': email, 'name': name, 'hireable': hireable, 'gravatar_Id': gravatar_Id, 'bio': bio }; getTypeName() => "GithubUser"; TypeContext? context = _ctx; } class GithubRepo implements IConvertible { int? id; String? name; String? description; String? homepage; String? language; int? watchers_Count; int? stargazes_Count; int? forks_Count; int? open_Issues_Count; int? size; String? full_Name; DateTime? created_at; DateTime? pushed_At; DateTime? updated_At; bool? has_issues; bool? has_Downloads; bool? has_Wiki; bool? has_Pages; bool? fork; GithubUser? owner; String? svn_Url; String? mirror_Url; String? url; String? ssh_Url; String? html_Url; String? clone_Url; String? git_Url; bool? private; GithubRepo({this.id,this.name,this.description,this.homepage,this.language,this.watchers_Count,this.stargazes_Count,this.forks_Count,this.open_Issues_Count,this.size,this.full_Name,this.created_at,this.pushed_At,this.updated_At,this.has_issues,this.has_Downloads,this.has_Wiki,this.has_Pages,this.fork,this.owner,this.svn_Url,this.mirror_Url,this.url,this.ssh_Url,this.html_Url,this.clone_Url,this.git_Url,this.private}); GithubRepo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; homepage = json['homepage']; language = json['language']; watchers_Count = json['watchers_Count']; stargazes_Count = json['stargazes_Count']; forks_Count = json['forks_Count']; open_Issues_Count = json['open_Issues_Count']; size = json['size']; full_Name = json['full_Name']; created_at = JsonConverters.fromJson(json['created_at'],'DateTime',context!); pushed_At = JsonConverters.fromJson(json['pushed_At'],'DateTime',context!); updated_At = JsonConverters.fromJson(json['updated_At'],'DateTime',context!); has_issues = json['has_issues']; has_Downloads = json['has_Downloads']; has_Wiki = json['has_Wiki']; has_Pages = json['has_Pages']; fork = json['fork']; owner = JsonConverters.fromJson(json['owner'],'GithubUser',context!); svn_Url = json['svn_Url']; mirror_Url = json['mirror_Url']; url = json['url']; ssh_Url = json['ssh_Url']; html_Url = json['html_Url']; clone_Url = json['clone_Url']; git_Url = json['git_Url']; private = json['private']; return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'homepage': homepage, 'language': language, 'watchers_Count': watchers_Count, 'stargazes_Count': stargazes_Count, 'forks_Count': forks_Count, 'open_Issues_Count': open_Issues_Count, 'size': size, 'full_Name': full_Name, 'created_at': JsonConverters.toJson(created_at,'DateTime',context!), 'pushed_At': JsonConverters.toJson(pushed_At,'DateTime',context!), 'updated_At': JsonConverters.toJson(updated_At,'DateTime',context!), 'has_issues': has_issues, 'has_Downloads': has_Downloads, 'has_Wiki': has_Wiki, 'has_Pages': has_Pages, 'fork': fork, 'owner': JsonConverters.toJson(owner,'GithubUser',context!), 'svn_Url': svn_Url, 'mirror_Url': mirror_Url, 'url': url, 'ssh_Url': ssh_Url, 'html_Url': html_Url, 'clone_Url': clone_Url, 'git_Url': git_Url, 'private': private }; getTypeName() => "GithubRepo"; TypeContext? context = _ctx; } class QueryGitHubRepos extends QueryData implements IReturn>, IConvertible, IGet { String? userName; QueryGitHubRepos({this.userName}); QueryGitHubRepos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); userName = json['userName']; return this; } Map toJson() => super.toJson()..addAll({ 'userName': userName }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryGitHubRepos"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sharpscript.net', types: { 'GithubUser': TypeInfo(TypeOf.Class, create:() => GithubUser()), 'GithubRepo': TypeInfo(TypeOf.Class, create:() => GithubRepo()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryGitHubRepos': TypeInfo(TypeOf.Class, create:() => QueryGitHubRepos()), 'List': TypeInfo(TypeOf.Class, create:() => []), });