GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating.fromJson constructor

GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating.fromJson(
  1. Map _json
)

Implementation

GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating.fromJson(core.Map _json)
    : this(
        bestRating: _json.containsKey('bestRating')
            ? _json['bestRating'] as core.int
            : null,
        imageUrl: _json.containsKey('imageUrl')
            ? _json['imageUrl'] as core.String
            : null,
        ratingExplanation: _json.containsKey('ratingExplanation')
            ? _json['ratingExplanation'] as core.String
            : null,
        ratingValue: _json.containsKey('ratingValue')
            ? _json['ratingValue'] as core.int
            : null,
        textualRating: _json.containsKey('textualRating')
            ? _json['textualRating'] as core.String
            : null,
        worstRating: _json.containsKey('worstRating')
            ? _json['worstRating'] as core.int
            : null,
      );