toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final numberOfNotifiedThings = this.numberOfNotifiedThings;
  final numberOfSucceededThings = this.numberOfSucceededThings;
  return {
    if (numberOfNotifiedThings != null)
      'numberOfNotifiedThings': numberOfNotifiedThings,
    if (numberOfSucceededThings != null)
      'numberOfSucceededThings': numberOfSucceededThings,
  };
}