toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dataRetentionInHours = this.dataRetentionInHours;
  final disabled = this.disabled;
  final streamingNotificationTargets = this.streamingNotificationTargets;
  return {
    'DataRetentionInHours': dataRetentionInHours,
    if (disabled != null) 'Disabled': disabled,
    if (streamingNotificationTargets != null)
      'StreamingNotificationTargets': streamingNotificationTargets,
  };
}