{"action":"created","issue":{"url":"https://api.github.com/repos/TrainFacts/main/issues/1","repository_url":"https://api.github.com/repos/TrainFacts/main","labels_url":"https://api.github.com/repos/TrainFacts/main/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/TrainFacts/main/issues/1/comments","events_url":"https://api.github.com/repos/TrainFacts/main/issues/1/events","html_url":"https://github.com/TrainFacts/main/issues/1","id":523940227,"node_id":"MDU6SXNzdWU1MjM5NDAyMjc=","number":1,"title":"Class, object, variable names need to be changed","user":{"login":"aidswidjaja","id":36395320,"node_id":"MDQ6VXNlcjM2Mzk1MzIw","avatar_url":"https://avatars1.githubusercontent.com/u/36395320?v=4","gravatar_id":"","url":"https://api.github.com/users/aidswidjaja","html_url":"https://github.com/aidswidjaja","followers_url":"https://api.github.com/users/aidswidjaja/followers","following_url":"https://api.github.com/users/aidswidjaja/following{/other_user}","gists_url":"https://api.github.com/users/aidswidjaja/gists{/gist_id}","starred_url":"https://api.github.com/users/aidswidjaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidswidjaja/subscriptions","organizations_url":"https://api.github.com/users/aidswidjaja/orgs","repos_url":"https://api.github.com/users/aidswidjaja/repos","events_url":"https://api.github.com/users/aidswidjaja/events{/privacy}","received_events_url":"https://api.github.com/users/aidswidjaja/received_events","type":"User","site_admin":false},"labels":[{"id":1681157835,"node_id":"MDU6TGFiZWwxNjgxMTU3ODM1","url":"https://api.github.com/repos/TrainFacts/main/labels/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"},{"id":1681157837,"node_id":"MDU6TGFiZWwxNjgxMTU3ODM3","url":"https://api.github.com/repos/TrainFacts/main/labels/help%20wanted","name":"help wanted","color":"008672","default":true,"description":"Extra attention is needed"}],"state":"closed","locked":false,"assignee":{"login":"aidswidjaja","id":36395320,"node_id":"MDQ6VXNlcjM2Mzk1MzIw","avatar_url":"https://avatars1.githubusercontent.com/u/36395320?v=4","gravatar_id":"","url":"https://api.github.com/users/aidswidjaja","html_url":"https://github.com/aidswidjaja","followers_url":"https://api.github.com/users/aidswidjaja/followers","following_url":"https://api.github.com/users/aidswidjaja/following{/other_user}","gists_url":"https://api.github.com/users/aidswidjaja/gists{/gist_id}","starred_url":"https://api.github.com/users/aidswidjaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidswidjaja/subscriptions","organizations_url":"https://api.github.com/users/aidswidjaja/orgs","repos_url":"https://api.github.com/users/aidswidjaja/repos","events_url":"https://api.github.com/users/aidswidjaja/events{/privacy}","received_events_url":"https://api.github.com/users/aidswidjaja/received_events","type":"User","site_admin":false},"assignees":[{"login":"aidswidjaja","id":36395320,"node_id":"MDQ6VXNlcjM2Mzk1MzIw","avatar_url":"https://avatars1.githubusercontent.com/u/36395320?v=4","gravatar_id":"","url":"https://api.github.com/users/aidswidjaja","html_url":"https://github.com/aidswidjaja","followers_url":"https://api.github.com/users/aidswidjaja/followers","following_url":"https://api.github.com/users/aidswidjaja/following{/other_user}","gists_url":"https://api.github.com/users/aidswidjaja/gists{/gist_id}","starred_url":"https://api.github.com/users/aidswidjaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidswidjaja/subscriptions","organizations_url":"https://api.github.com/users/aidswidjaja/orgs","repos_url":"https://api.github.com/users/aidswidjaja/repos","events_url":"https://api.github.com/users/aidswidjaja/events{/privacy}","received_events_url":"https://api.github.com/users/aidswidjaja/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2019-11-17T05:44:24Z","updated_at":"2019-11-28T05:03:20Z","closed_at":"2019-11-28T05:03:20Z","author_association":"CONTRIBUTOR","body":"As timeline.dart is based off the example at [https://flutter.dev/docs/cookbook/networking/fetch-data](https://flutter.dev/docs/cookbook/networking/fetch-data) and I don't want to break anything, names have remained the same. This code sample should be edited to reflect actual usage in the future. It's okay for now though as we need to get this app out by the deadline.\r\n\r\nExample below. Photos doesn't actually grab Photos.\r\n```\r\nFuture<List<Photo>> fetchPhotos(http.Client client) async {\r\n  final response =\r\n  await client.get('https://jsonplaceholder.typicode.com/posts');\r\n\r\n  // Use the compute function to run parsePhotos in a separate isolate.\r\n  return compute(parsePhotos, response.body);\r\n}\r\n\r\n// A function that converts a response body into a List<Photo>.\r\nList<Photo> parsePhotos(String responseBody) {\r\n  final parsed = json.decode(responseBody).cast<Map<String, dynamic>>();\r\n\r\n  return parsed.map<Photo>((json) => Photo.fromJson(json)).toList();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/TrainFacts/main/issues/comments/559342898","html_url":"https://github.com/TrainFacts/main/issues/1#issuecomment-559342898","issue_url":"https://api.github.com/repos/TrainFacts/main/issues/1","id":559342898,"node_id":"MDEyOklzc3VlQ29tbWVudDU1OTM0Mjg5OA==","user":{"login":"aidswidjaja","id":36395320,"node_id":"MDQ6VXNlcjM2Mzk1MzIw","avatar_url":"https://avatars1.githubusercontent.com/u/36395320?v=4","gravatar_id":"","url":"https://api.github.com/users/aidswidjaja","html_url":"https://github.com/aidswidjaja","followers_url":"https://api.github.com/users/aidswidjaja/followers","following_url":"https://api.github.com/users/aidswidjaja/following{/other_user}","gists_url":"https://api.github.com/users/aidswidjaja/gists{/gist_id}","starred_url":"https://api.github.com/users/aidswidjaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidswidjaja/subscriptions","organizations_url":"https://api.github.com/users/aidswidjaja/orgs","repos_url":"https://api.github.com/users/aidswidjaja/repos","events_url":"https://api.github.com/users/aidswidjaja/events{/privacy}","received_events_url":"https://api.github.com/users/aidswidjaja/received_events","type":"User","site_admin":false},"created_at":"2019-11-28T05:03:20Z","updated_at":"2019-11-28T05:03:20Z","author_association":"CONTRIBUTOR","body":"Issue fixed in recent commit"}}
{"actor":{"display_login":"aidswidjaja"}}