2020-02-02 07:08:58 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'bitbucket.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2020-02-02 09:40:12 +01:00
|
|
|
BbPagination _$BbPaginationFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbPagination()
|
|
|
|
..pagelen = json['pagelen'] as int
|
|
|
|
..size = json['size'] as int
|
|
|
|
..page = json['page'] as int
|
|
|
|
..next = json['next'] as String
|
|
|
|
..values = json['values'] as List;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbPaginationToJson(BbPagination instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'pagelen': instance.pagelen,
|
|
|
|
'size': instance.size,
|
|
|
|
'page': instance.page,
|
|
|
|
'next': instance.next,
|
|
|
|
'values': instance.values,
|
|
|
|
};
|
|
|
|
|
2020-02-02 11:58:05 +01:00
|
|
|
BbRepoOwner _$BbRepoOwnerFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbRepoOwner()
|
|
|
|
..nickname = json['nickname'] as String
|
|
|
|
..displayName = json['display_name'] as String
|
|
|
|
..type = json['type'] as String
|
|
|
|
..links = json['links'] as Map<String, dynamic>;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbRepoOwnerToJson(BbRepoOwner instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'nickname': instance.nickname,
|
|
|
|
'display_name': instance.displayName,
|
|
|
|
'type': instance.type,
|
|
|
|
'links': instance.links,
|
|
|
|
};
|
|
|
|
|
2020-02-02 07:08:58 +01:00
|
|
|
BbUser _$BbUserFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbUser()
|
2020-02-02 09:40:12 +01:00
|
|
|
..nickname = json['nickname'] as String
|
2020-02-02 07:08:58 +01:00
|
|
|
..displayName = json['display_name'] as String
|
2020-02-02 09:40:12 +01:00
|
|
|
..type = json['type'] as String
|
2020-02-02 11:58:05 +01:00
|
|
|
..links = json['links'] as Map<String, dynamic>
|
|
|
|
..username = json['username'] as String
|
2020-02-02 07:08:58 +01:00
|
|
|
..isStaff = json['is_staff'] as bool
|
|
|
|
..createdOn = json['created_on'] == null
|
|
|
|
? null
|
2020-05-11 14:57:18 +02:00
|
|
|
: DateTime.parse(json['created_on'] as String)
|
|
|
|
..accountId = json['account_id'] as String;
|
2020-02-02 07:08:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbUserToJson(BbUser instance) => <String, dynamic>{
|
2020-02-02 09:40:12 +01:00
|
|
|
'nickname': instance.nickname,
|
2020-02-02 07:08:58 +01:00
|
|
|
'display_name': instance.displayName,
|
2020-02-02 09:40:12 +01:00
|
|
|
'type': instance.type,
|
2020-02-02 11:58:05 +01:00
|
|
|
'links': instance.links,
|
|
|
|
'username': instance.username,
|
2020-02-02 07:08:58 +01:00
|
|
|
'is_staff': instance.isStaff,
|
|
|
|
'created_on': instance.createdOn?.toIso8601String(),
|
2020-05-11 14:57:18 +02:00
|
|
|
'account_id': instance.accountId,
|
2020-02-02 07:08:58 +01:00
|
|
|
};
|
2020-02-02 09:40:12 +01:00
|
|
|
|
|
|
|
BbRepo _$BbRepoFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbRepo()
|
|
|
|
..name = json['name'] as String
|
|
|
|
..owner = json['owner'] == null
|
|
|
|
? null
|
2020-02-02 11:58:05 +01:00
|
|
|
: BbRepoOwner.fromJson(json['owner'] as Map<String, dynamic>)
|
2020-02-02 09:40:12 +01:00
|
|
|
..website = json['website'] as String
|
|
|
|
..language = json['language'] as String
|
|
|
|
..size = json['size'] as int
|
|
|
|
..type = json['type'] as String
|
|
|
|
..isPrivate = json['is_private'] as bool
|
|
|
|
..createdOn = json['created_on'] == null
|
|
|
|
? null
|
|
|
|
: DateTime.parse(json['created_on'] as String)
|
|
|
|
..updatedOn = json['updated_on'] == null
|
|
|
|
? null
|
|
|
|
: DateTime.parse(json['updated_on'] as String)
|
|
|
|
..description = json['description'] as String
|
|
|
|
..fullName = json['full_name'] as String
|
2020-02-02 11:58:05 +01:00
|
|
|
..slug = json['slug'] as String
|
|
|
|
..mainbranch = json['mainbranch'] == null
|
|
|
|
? null
|
|
|
|
: BbRepoMainbranch.fromJson(json['mainbranch'] as Map<String, dynamic>)
|
2020-02-02 09:40:12 +01:00
|
|
|
..links = json['links'] as Map<String, dynamic>;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbRepoToJson(BbRepo instance) => <String, dynamic>{
|
|
|
|
'name': instance.name,
|
|
|
|
'owner': instance.owner,
|
|
|
|
'website': instance.website,
|
|
|
|
'language': instance.language,
|
|
|
|
'size': instance.size,
|
|
|
|
'type': instance.type,
|
|
|
|
'is_private': instance.isPrivate,
|
|
|
|
'created_on': instance.createdOn?.toIso8601String(),
|
|
|
|
'updated_on': instance.updatedOn?.toIso8601String(),
|
|
|
|
'description': instance.description,
|
|
|
|
'full_name': instance.fullName,
|
2020-02-02 11:58:05 +01:00
|
|
|
'slug': instance.slug,
|
|
|
|
'mainbranch': instance.mainbranch,
|
2020-02-02 09:40:12 +01:00
|
|
|
'links': instance.links,
|
|
|
|
};
|
2020-02-02 11:58:05 +01:00
|
|
|
|
|
|
|
BbRepoMainbranch _$BbRepoMainbranchFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbRepoMainbranch()
|
|
|
|
..type = json['type'] as String
|
|
|
|
..name = json['name'] as String;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbRepoMainbranchToJson(BbRepoMainbranch instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'type': instance.type,
|
|
|
|
'name': instance.name,
|
|
|
|
};
|
2020-02-02 12:50:00 +01:00
|
|
|
|
|
|
|
BbTree _$BbTreeFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbTree()
|
|
|
|
..type = json['type'] as String
|
|
|
|
..path = json['path'] as String
|
2020-02-02 16:02:58 +01:00
|
|
|
..size = json['size'] as int
|
|
|
|
..links = json['links'] as Map<String, dynamic>;
|
2020-02-02 12:50:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbTreeToJson(BbTree instance) => <String, dynamic>{
|
|
|
|
'type': instance.type,
|
|
|
|
'path': instance.path,
|
|
|
|
'size': instance.size,
|
2020-02-02 16:02:58 +01:00
|
|
|
'links': instance.links,
|
2020-02-02 12:50:00 +01:00
|
|
|
};
|
2020-02-03 07:40:56 +01:00
|
|
|
|
|
|
|
BbCommit _$BbCommitFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbCommit()
|
|
|
|
..message = json['message'] as String
|
|
|
|
..date =
|
|
|
|
json['date'] == null ? null : DateTime.parse(json['date'] as String)
|
|
|
|
..hash = json['hash'] as String
|
|
|
|
..author = json['author'] == null
|
|
|
|
? null
|
|
|
|
: BbCommitAuthor.fromJson(json['author'] as Map<String, dynamic>);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbCommitToJson(BbCommit instance) => <String, dynamic>{
|
|
|
|
'message': instance.message,
|
|
|
|
'date': instance.date?.toIso8601String(),
|
|
|
|
'hash': instance.hash,
|
|
|
|
'author': instance.author,
|
|
|
|
};
|
|
|
|
|
|
|
|
BbCommitAuthor _$BbCommitAuthorFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbCommitAuthor()
|
|
|
|
..raw = json['raw'] as String
|
|
|
|
..user = json['user'] == null
|
|
|
|
? null
|
|
|
|
: BbRepoOwner.fromJson(json['user'] as Map<String, dynamic>);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbCommitAuthorToJson(BbCommitAuthor instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'raw': instance.raw,
|
|
|
|
'user': instance.user,
|
|
|
|
};
|
2020-05-17 06:20:11 +02:00
|
|
|
|
|
|
|
BbIssues _$BbIssuesFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbIssues()
|
|
|
|
..priority = json['priority'] as String
|
|
|
|
..state = json['state'] as String
|
|
|
|
..repository = json['repository'] == null
|
|
|
|
? null
|
|
|
|
: BbRepo.fromJson(json['repository'] as Map<String, dynamic>)
|
|
|
|
..title = json['title'] as String
|
|
|
|
..reporter = json['reporter'] == null
|
|
|
|
? null
|
|
|
|
: BbRepoOwner.fromJson(json['reporter'] as Map<String, dynamic>)
|
|
|
|
..createdOn = json['created_on'] == null
|
|
|
|
? null
|
|
|
|
: DateTime.parse(json['created_on'] as String)
|
|
|
|
..links = json['links'] as Map<String, dynamic>;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbIssuesToJson(BbIssues instance) => <String, dynamic>{
|
|
|
|
'priority': instance.priority,
|
|
|
|
'state': instance.state,
|
|
|
|
'repository': instance.repository,
|
|
|
|
'title': instance.title,
|
|
|
|
'reporter': instance.reporter,
|
|
|
|
'created_on': instance.createdOn?.toIso8601String(),
|
|
|
|
'links': instance.links,
|
|
|
|
};
|
|
|
|
|
|
|
|
BbPulls _$BbPullsFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbPulls()
|
|
|
|
..description = json['description'] as String
|
|
|
|
..author = json['author'] == null
|
|
|
|
? null
|
|
|
|
: BbRepoOwner.fromJson(json['author'] as Map<String, dynamic>)
|
|
|
|
..title = json['title'] as String
|
|
|
|
..links = json['links'] as Map<String, dynamic>
|
|
|
|
..createdOn = json['created_on'] == null
|
|
|
|
? null
|
|
|
|
: DateTime.parse(json['created_on'] as String);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbPullsToJson(BbPulls instance) => <String, dynamic>{
|
|
|
|
'description': instance.description,
|
|
|
|
'author': instance.author,
|
|
|
|
'title': instance.title,
|
|
|
|
'links': instance.links,
|
|
|
|
'created_on': instance.createdOn?.toIso8601String(),
|
|
|
|
};
|
2021-01-06 14:17:49 +01:00
|
|
|
|
|
|
|
BbCommentContent _$BbCommentContentFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbCommentContent()
|
|
|
|
..raw = json['raw'] as String
|
|
|
|
..markup = json['markup'] as String
|
|
|
|
..html = json['html'] as String;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbCommentContentToJson(BbCommentContent instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'raw': instance.raw,
|
|
|
|
'markup': instance.markup,
|
|
|
|
'html': instance.html,
|
|
|
|
};
|
|
|
|
|
|
|
|
BbComment _$BbCommentFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbComment()
|
|
|
|
..createdOn = json['created_on'] as String
|
|
|
|
..updatedOn = json['updated_on'] as String
|
|
|
|
..content = json['content'] == null
|
|
|
|
? null
|
|
|
|
: BbCommentContent.fromJson(json['content'] as Map<String, dynamic>)
|
|
|
|
..user = json['user'] == null
|
|
|
|
? null
|
|
|
|
: BbRepoOwner.fromJson(json['user'] as Map<String, dynamic>);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbCommentToJson(BbComment instance) => <String, dynamic>{
|
|
|
|
'created_on': instance.createdOn,
|
|
|
|
'updated_on': instance.updatedOn,
|
|
|
|
'content': instance.content,
|
|
|
|
'user': instance.user,
|
|
|
|
};
|