toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'emails'] = this.emails;
    json[r'dedup'] = this.dedup;
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
  if (this.webhookUrl != null) {
    json[r'webhook_url'] = this.webhookUrl;
  } else {
    json[r'webhook_url'] = null;
  }
  if (this.idempotencyKey != null) {
    json[r'idempotency_key'] = this.idempotencyKey;
  } else {
    json[r'idempotency_key'] = null;
  }
  return json;
}