toJson method

String toJson()

Implementation

String toJson() {
  final Map<String, dynamic> emailContent = {
    'to': this.to,
    'cc': this.cc,
    'bcc': this.bcc,
    'subject': this.subject,
    'body': this.body,
  };

  return json.encode(emailContent);
}