toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'from': this.from,
'from_name': this.from_name,
'template_id': this.template_id,
'substitutions': {
if (this.usernameSubstitution != null)
"username": this.usernameSubstitution
}
};
}