GoogleFirebasePredictionsV1beta1Prediction.fromJson constructor

GoogleFirebasePredictionsV1beta1Prediction.fromJson(
  1. Map _json
)

Implementation

GoogleFirebasePredictionsV1beta1Prediction.fromJson(core.Map _json)
    : this(
        percentile: _json.containsKey('percentile')
            ? (_json['percentile'] as core.num).toDouble()
            : null,
        predictionId: _json.containsKey('predictionId')
            ? _json['predictionId'] as core.String
            : null,
        probability: _json.containsKey('probability')
            ? (_json['probability'] as core.num).toDouble()
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
      );