encode method

Object encode()

Implementation

Object encode() {
  final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
  pigeonMap['sid'] = sid;
  pigeonMap['messageIndex'] = messageIndex;
  pigeonMap['author'] = author;
  pigeonMap['subject'] = subject;
  pigeonMap['messageBody'] = messageBody;
  pigeonMap['type'] = type;
  pigeonMap['hasMedia'] = hasMedia;
  pigeonMap['media'] = media == null ? null : media!.encode();
  pigeonMap['conversationSid'] = conversationSid;
  pigeonMap['participantSid'] = participantSid;
  pigeonMap['participant'] = participant == null ? null : participant!.encode();
  pigeonMap['dateCreated'] = dateCreated;
  pigeonMap['dateUpdated'] = dateUpdated;
  pigeonMap['lastUpdatedBy'] = lastUpdatedBy;
  pigeonMap['attributes'] = attributes == null ? null : attributes!.encode();
  return pigeonMap;
}