Review.fromJson constructor

Review.fromJson(
  1. Map json_
)

Implementation

Review.fromJson(core.Map json_)
    : this(
        author: json_.containsKey('author')
            ? ReviewAuthor.fromJson(
                json_['author'] as core.Map<core.String, core.dynamic>)
            : null,
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        date: json_.containsKey('date') ? json_['date'] as core.String : null,
        fullTextUrl: json_.containsKey('fullTextUrl')
            ? json_['fullTextUrl'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        rating: json_.containsKey('rating')
            ? json_['rating'] as core.String
            : null,
        source: json_.containsKey('source')
            ? ReviewSource.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        volumeId: json_.containsKey('volumeId')
            ? json_['volumeId'] as core.String
            : null,
      );