GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup.fromJson constructor

GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup.fromJson(
  1. Map _json
)

Implementation

GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup.fromJson(
    core.Map _json)
    : this(
        claimAppearances: _json.containsKey('claimAppearances')
            ? (_json['claimAppearances'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        claimAuthor: _json.containsKey('claimAuthor')
            ? GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor.fromJson(
                _json['claimAuthor'] as core.Map<core.String, core.dynamic>)
            : null,
        claimDate: _json.containsKey('claimDate')
            ? _json['claimDate'] as core.String
            : null,
        claimFirstAppearance: _json.containsKey('claimFirstAppearance')
            ? _json['claimFirstAppearance'] as core.String
            : null,
        claimLocation: _json.containsKey('claimLocation')
            ? _json['claimLocation'] as core.String
            : null,
        claimReviewed: _json.containsKey('claimReviewed')
            ? _json['claimReviewed'] as core.String
            : null,
        rating: _json.containsKey('rating')
            ? GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating.fromJson(
                _json['rating'] as core.Map<core.String, core.dynamic>)
            : null,
        url: _json.containsKey('url') ? _json['url'] as core.String : null,
      );