toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final frequency = this.frequency;
  final monitorArnList = this.monitorArnList;
  final subscribers = this.subscribers;
  final subscriptionName = this.subscriptionName;
  final threshold = this.threshold;
  final accountId = this.accountId;
  final subscriptionArn = this.subscriptionArn;
  return {
    'Frequency': frequency.toValue(),
    'MonitorArnList': monitorArnList,
    'Subscribers': subscribers,
    'SubscriptionName': subscriptionName,
    'Threshold': threshold,
    if (accountId != null) 'AccountId': accountId,
    if (subscriptionArn != null) 'SubscriptionArn': subscriptionArn,
  };
}