GoogleFactcheckingFactchecktoolsV1alpha1Claim.fromJson constructor

GoogleFactcheckingFactchecktoolsV1alpha1Claim.fromJson(
  1. Map _json
)

Implementation

GoogleFactcheckingFactchecktoolsV1alpha1Claim.fromJson(core.Map _json)
    : this(
        claimDate: _json.containsKey('claimDate')
            ? _json['claimDate'] as core.String
            : null,
        claimReview: _json.containsKey('claimReview')
            ? (_json['claimReview'] as core.List)
                .map<GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview>(
                    (value) =>
                        GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        claimant: _json.containsKey('claimant')
            ? _json['claimant'] as core.String
            : null,
        text: _json.containsKey('text') ? _json['text'] as core.String : null,
      );