toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final jobStatesToNotify = this.jobStatesToNotify;
  final notifyAll = this.notifyAll;
  final snsTopicARN = this.snsTopicARN;
  return {
    if (jobStatesToNotify != null)
      'JobStatesToNotify': jobStatesToNotify.map((e) => e.toValue()).toList(),
    if (notifyAll != null) 'NotifyAll': notifyAll,
    if (snsTopicARN != null) 'SnsTopicARN': snsTopicARN,
  };
}