toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'email_address'] = this.emailAddress;
if (this.publicMetadata != null) {
json[r'public_metadata'] = this.publicMetadata;
} else {
json[r'public_metadata'] = null;
}
if (this.redirectUrl != null) {
json[r'redirect_url'] = this.redirectUrl;
} else {
json[r'redirect_url'] = null;
}
if (this.notify != null) {
json[r'notify'] = this.notify;
} else {
json[r'notify'] = null;
}
if (this.ignoreExisting != null) {
json[r'ignore_existing'] = this.ignoreExisting;
} else {
json[r'ignore_existing'] = null;
}
if (this.expiresInDays != null) {
json[r'expires_in_days'] = this.expiresInDays;
} else {
json[r'expires_in_days'] = null;
}
json[r'template_slug'] = this.templateSlug;
return json;
}