Comment.fromJson constructor
Comment.fromJson(
- Map json_
Implementation
Comment.fromJson(core.Map json_)
: this(
anchor: json_.containsKey('anchor')
? json_['anchor'] as core.String
: null,
author: json_.containsKey('author')
? User.fromJson(
json_['author'] as core.Map<core.String, core.dynamic>)
: null,
commentId: json_.containsKey('commentId')
? json_['commentId'] as core.String
: null,
content: json_.containsKey('content')
? json_['content'] as core.String
: null,
context: json_.containsKey('context')
? CommentContext.fromJson(
json_['context'] as core.Map<core.String, core.dynamic>)
: null,
createdDate: json_.containsKey('createdDate')
? core.DateTime.parse(json_['createdDate'] as core.String)
: null,
deleted: json_.containsKey('deleted')
? json_['deleted'] as core.bool
: null,
fileId: json_.containsKey('fileId')
? json_['fileId'] as core.String
: null,
fileTitle: json_.containsKey('fileTitle')
? json_['fileTitle'] as core.String
: null,
htmlContent: json_.containsKey('htmlContent')
? json_['htmlContent'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
modifiedDate: json_.containsKey('modifiedDate')
? core.DateTime.parse(json_['modifiedDate'] as core.String)
: null,
replies: json_.containsKey('replies')
? (json_['replies'] as core.List)
.map((value) => CommentReply.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
);