2019-12-04 15:00:39 +01:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'gitlab.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
2019-12-11 16:09:39 +01:00
|
|
|
class GitlabUser {
|
2021-05-16 09:16:35 +02:00
|
|
|
int? id;
|
|
|
|
String? username;
|
|
|
|
String? name;
|
|
|
|
String? avatarUrl;
|
|
|
|
String? bio;
|
|
|
|
DateTime? createdAt;
|
|
|
|
int? accessLevel;
|
2019-12-11 16:09:39 +01:00
|
|
|
GitlabUser();
|
|
|
|
factory GitlabUser.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabUserFromJson(json);
|
2020-01-31 15:45:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabGroup {
|
2021-05-16 09:16:35 +02:00
|
|
|
int? id;
|
|
|
|
String? path;
|
|
|
|
String? name;
|
|
|
|
String? avatarUrl;
|
|
|
|
String? description;
|
|
|
|
List<GitlabProject>? projects;
|
2020-01-31 15:45:40 +01:00
|
|
|
GitlabGroup();
|
|
|
|
factory GitlabGroup.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabGroupFromJson(json);
|
2019-12-04 15:00:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabTodoProject {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? pathWithNamespace;
|
2019-12-04 15:00:39 +01:00
|
|
|
GitlabTodoProject();
|
|
|
|
factory GitlabTodoProject.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabTodoProjectFromJson(json);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabTodo {
|
2021-05-16 09:16:35 +02:00
|
|
|
GitlabUser? author;
|
|
|
|
GitlabTodoProject? project;
|
|
|
|
String? actionName;
|
|
|
|
String? targetType;
|
|
|
|
GitlabTodoTarget? target;
|
2019-12-04 15:00:39 +01:00
|
|
|
GitlabTodo();
|
|
|
|
factory GitlabTodo.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabTodoFromJson(json);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
2020-01-28 16:39:26 +01:00
|
|
|
class GitlabTodoTarget {
|
2021-05-16 09:16:35 +02:00
|
|
|
int? iid;
|
|
|
|
int? projectId;
|
|
|
|
String? title;
|
|
|
|
GitlabUser? author;
|
|
|
|
String? description;
|
|
|
|
DateTime? createdAt;
|
2020-01-28 16:39:26 +01:00
|
|
|
GitlabTodoTarget();
|
|
|
|
factory GitlabTodoTarget.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabTodoTargetFromJson(json);
|
2019-12-04 15:00:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabIssueNote {
|
2021-05-16 09:16:35 +02:00
|
|
|
GitlabUser? author;
|
|
|
|
String? body;
|
|
|
|
bool? system;
|
|
|
|
DateTime? createdAt;
|
2019-12-04 15:00:39 +01:00
|
|
|
GitlabIssueNote();
|
|
|
|
factory GitlabIssueNote.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabIssueNoteFromJson(json);
|
|
|
|
}
|
2019-12-11 16:09:39 +01:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabProject {
|
2021-05-16 09:16:35 +02:00
|
|
|
int? id;
|
|
|
|
String? name;
|
|
|
|
String? avatarUrl;
|
|
|
|
String? description;
|
|
|
|
int? starCount;
|
|
|
|
int? forksCount;
|
|
|
|
String? visibility;
|
|
|
|
String? readmeUrl;
|
|
|
|
String? webUrl;
|
|
|
|
GitlabProjectNamespace? namespace;
|
|
|
|
GitlabUser? owner;
|
|
|
|
bool? issuesEnabled;
|
|
|
|
int? openIssuesCount;
|
|
|
|
bool? mergeRequestsEnabled;
|
|
|
|
GitlabProjectStatistics? statistics;
|
|
|
|
DateTime? lastActivityAt;
|
|
|
|
DateTime? createdAt;
|
|
|
|
String? defaultBranch;
|
2019-12-11 16:09:39 +01:00
|
|
|
GitlabProject();
|
|
|
|
factory GitlabProject.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabProjectFromJson(json);
|
|
|
|
}
|
|
|
|
|
2020-01-28 15:10:44 +01:00
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabProjectBadge {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? renderedImageUrl;
|
2020-01-28 15:10:44 +01:00
|
|
|
GitlabProjectBadge();
|
|
|
|
factory GitlabProjectBadge.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabProjectBadgeFromJson(json);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabProjectStatistics {
|
2021-05-16 09:16:35 +02:00
|
|
|
int? commitCount;
|
|
|
|
int? repositorySize;
|
2020-01-28 15:10:44 +01:00
|
|
|
GitlabProjectStatistics();
|
|
|
|
factory GitlabProjectStatistics.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabProjectStatisticsFromJson(json);
|
|
|
|
}
|
|
|
|
|
2019-12-11 16:09:39 +01:00
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabProjectNamespace {
|
2021-05-16 09:16:35 +02:00
|
|
|
int? id;
|
|
|
|
String? name;
|
|
|
|
String? path;
|
|
|
|
String? kind;
|
2019-12-11 16:09:39 +01:00
|
|
|
GitlabProjectNamespace();
|
|
|
|
factory GitlabProjectNamespace.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabProjectNamespaceFromJson(json);
|
|
|
|
}
|
2019-12-11 16:37:29 +01:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabTreeItem {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? type;
|
|
|
|
String? path;
|
|
|
|
String? name;
|
2019-12-11 16:37:29 +01:00
|
|
|
GitlabTreeItem();
|
|
|
|
factory GitlabTreeItem.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabTreeItemFromJson(json);
|
|
|
|
}
|
2019-12-11 16:58:25 +01:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabBlob {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? content;
|
2019-12-11 16:58:25 +01:00
|
|
|
GitlabBlob();
|
|
|
|
factory GitlabBlob.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabBlobFromJson(json);
|
|
|
|
}
|
2019-12-14 17:08:45 +01:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabEvent {
|
2021-05-16 09:16:35 +02:00
|
|
|
GitlabUser? author;
|
|
|
|
String? actionName;
|
|
|
|
String? targetType;
|
|
|
|
GitlabEventNote? note;
|
2019-12-14 17:08:45 +01:00
|
|
|
GitlabEvent();
|
|
|
|
factory GitlabEvent.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabEventFromJson(json);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabEventNote {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? body;
|
|
|
|
String? noteableType;
|
|
|
|
int? noteableIid;
|
2019-12-14 17:08:45 +01:00
|
|
|
GitlabEventNote();
|
|
|
|
factory GitlabEventNote.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabEventNoteFromJson(json);
|
|
|
|
}
|
2020-01-28 15:10:44 +01:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabCommit {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? id;
|
|
|
|
String? shortId;
|
|
|
|
String? title;
|
|
|
|
DateTime? createdAt;
|
|
|
|
String? authorName;
|
|
|
|
String? message;
|
2020-01-28 15:10:44 +01:00
|
|
|
GitlabCommit();
|
|
|
|
factory GitlabCommit.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabCommitFromJson(json);
|
|
|
|
}
|
2020-01-28 16:39:26 +01:00
|
|
|
|
2020-02-29 10:06:47 +01:00
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabDiff {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? diff;
|
|
|
|
String? newPath;
|
|
|
|
String? oldPath;
|
2020-02-29 10:06:47 +01:00
|
|
|
GitlabDiff();
|
|
|
|
factory GitlabDiff.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabDiffFromJson(json);
|
|
|
|
}
|
|
|
|
|
2020-01-28 16:39:26 +01:00
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabIssue {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? title;
|
|
|
|
int? iid;
|
|
|
|
int? projectId;
|
|
|
|
GitlabUser? author;
|
|
|
|
int? userNotesCount;
|
|
|
|
DateTime? updatedAt;
|
|
|
|
List<String>? labels;
|
2020-01-28 16:39:26 +01:00
|
|
|
GitlabIssue();
|
|
|
|
factory GitlabIssue.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabIssueFromJson(json);
|
|
|
|
}
|
2020-04-06 08:48:50 +02:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabStarrer {
|
2021-05-16 09:16:35 +02:00
|
|
|
DateTime? starredSince;
|
|
|
|
GitlabUser? user;
|
2020-04-06 08:48:50 +02:00
|
|
|
GitlabStarrer();
|
|
|
|
factory GitlabStarrer.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabStarrerFromJson(json);
|
|
|
|
}
|
2021-01-18 17:46:31 +01:00
|
|
|
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
|
|
class GitlabBranch {
|
2021-05-16 09:16:35 +02:00
|
|
|
String? name;
|
|
|
|
bool? merged;
|
2021-01-18 17:46:31 +01:00
|
|
|
GitlabBranch();
|
|
|
|
factory GitlabBranch.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$GitlabBranchFromJson(json);
|
|
|
|
}
|