createPublicKey method
Adds a public key for the authenticated user.
API docs: https://developer.github.com/v3/users/keys/#create-a-public-key
Implementation
Future<PublicKey> createPublicKey(CreatePublicKey key) {
return github.postJSON('/user/keys', body: GitHubJson.encode(key))
as Future<PublicKey>;
}