in lib/github_datatypes.dart [1175:1209]
static Issue fromGraphQL(dynamic node) {
List<Actor?>? assignees = null;
var edges = (node['assignees'] ?? {})['edges'];
if (edges != null && edges.length != 0) {
assignees = <Actor?>[];
for (var node in edges) {
assignees.add(Actor.fromGraphQL(node['node']));
}
}
return Issue(
node['title'],
node['id'],
node['number'],
node['state'],
node['author'] == null ? null : Actor.fromGraphQL(node['author']),
assignees,
node['body'],
node['labels'] == null ? null : Labels.fromGraphQL(node['labels']),
node['url'],
node['createdAt'] == null ? null : DateTime.parse(node['createdAt']),
node['closedAt'] == null ? null : DateTime.parse(node['closedAt']),
node['lastEditedAt'] == null
? null
: DateTime.parse(node['lastEditedAt']),
node['updatedAt'] == null ? null : DateTime.parse(node['updatedAt']),
node['repository'] == null
? null
: Repository.fromGraphQL(node['repository']),
node['milestone'] == null
? null
: Milestone.fromGraphQL(node['milestone']),
node['timelineItems'] == null
? null
: Timeline.fromGraphQL(node['timelineItems']));
}