Review.fromJson constructor

Review.fromJson(
  1. Map json_
)

Implementation

Review.fromJson(core.Map json_)
    : this(
        authorName: json_.containsKey('authorName')
            ? json_['authorName'] as core.String
            : null,
        comments: json_.containsKey('comments')
            ? (json_['comments'] as core.List)
                .map((value) => Comment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reviewId: json_.containsKey('reviewId')
            ? json_['reviewId'] as core.String
            : null,
      );