Answer.fromJson constructor

Answer.fromJson(
  1. Map json_
)

Implementation

Answer.fromJson(core.Map json_)
    : this(
        author: json_.containsKey('author')
            ? Author.fromJson(
                json_['author'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        upvoteCount: json_.containsKey('upvoteCount')
            ? json_['upvoteCount'] as core.int
            : null,
      );