asMap method
Returns a map of the content.
Implementation
Map<String, String> asMap() {
switch (_type) {
case MessageContentType.html:
return {'html': value};
case MessageContentType.text:
return {'text': value};
case MessageContentType.template:
return {'template': value, 'h:X-Mailgun-Variables': templateVariables};
}
}