toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attachmentsSha256Hash != null)
        'attachmentsSha256Hash': attachmentsSha256Hash!,
      if (date != null) 'date': date!,
      if (md5HashMessageBody != null)
        'md5HashMessageBody': md5HashMessageBody!,
      if (md5HashSubject != null) 'md5HashSubject': md5HashSubject!,
      if (messageBodySnippet != null)
        'messageBodySnippet': messageBodySnippet!,
      if (messageId != null) 'messageId': messageId!,
      if (recipient != null) 'recipient': recipient!,
      if (subjectText != null) 'subjectText': subjectText!,
    };