Comment.fromJson constructor
Comment.fromJson(
- Map json_
Implementation
Comment.fromJson(core.Map json_)
: this(
assignment: json_.containsKey('assignment')
? Assignment.fromJson(
json_['assignment'] as core.Map<core.String, core.dynamic>)
: null,
mentionedUsers: json_.containsKey('mentionedUsers')
? (json_['mentionedUsers'] as core.List)
.map((value) => User.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
post: json_.containsKey('post')
? Post.fromJson(
json_['post'] as core.Map<core.String, core.dynamic>)
: null,
suggestion: json_.containsKey('suggestion')
? Suggestion.fromJson(
json_['suggestion'] as core.Map<core.String, core.dynamic>)
: null,
);