toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final notificationArn = this.notificationArn;
  final notificationEvents = this.notificationEvents;
  final notificationType = this.notificationType;
  return {
    if (notificationArn != null) 'NotificationArn': notificationArn,
    if (notificationEvents != null)
      'NotificationEvents':
          notificationEvents.map((e) => e.toValue()).toList(),
    if (notificationType != null)
      'NotificationType': notificationType.toValue(),
  };
}