forked from CarGuo/gsy_github_app_flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommitComment.dart
More file actions
46 lines (40 loc) · 908 Bytes
/
CommitComment.dart
File metadata and controls
46 lines (40 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import 'package:gsy_github_app_flutter/common/model/User.dart';
import 'package:json_annotation/json_annotation.dart';
/**
* Created by guoshuyu
* Date: 2018-07-31
*/
part 'CommitComment.g.dart';
@JsonSerializable()
class CommitComment{
int id;
String body;
String path;
int position;
int line;
@JsonKey(name: "commit_id")
String commitId;
@JsonKey(name: "created_at")
DateTime createdAt;
@JsonKey(name: "updated_at")
DateTime updatedAt;
@JsonKey(name: "html_url")
String htmlUrl;
String url;
User user;
CommitComment(
this.id,
this.body,
this.path,
this.position,
this.line,
this.commitId,
this.createdAt,
this.updatedAt,
this.htmlUrl,
this.url,
this.user,
);
factory CommitComment.fromJson(Map<String, dynamic> json) => _$CommitCommentFromJson(json);
Map<String, dynamic> toJson() => _$CommitCommentToJson(this);
}