GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.fromJson constructor

GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.fromJson(
  1. Map _json
)

Implementation

GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.fromJson(core.Map _json)
    : this(
        delivered: _json.containsKey('delivered')
            ? (_json['delivered'] as core.num).toDouble()
            : null,
        droppedAppForceStopped: _json.containsKey('droppedAppForceStopped')
            ? (_json['droppedAppForceStopped'] as core.num).toDouble()
            : null,
        droppedDeviceInactive: _json.containsKey('droppedDeviceInactive')
            ? (_json['droppedDeviceInactive'] as core.num).toDouble()
            : null,
        droppedTooManyPendingMessages: _json
                .containsKey('droppedTooManyPendingMessages')
            ? (_json['droppedTooManyPendingMessages'] as core.num).toDouble()
            : null,
        pending: _json.containsKey('pending')
            ? (_json['pending'] as core.num).toDouble()
            : null,
      );