toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  'senderId': this.senderId,
  'category': this.category,
  'collapseKey': this.collapseKey,
  'contentAvailable': this.contentAvailable,
  'data': this.data,
  'from': this.from,
  'messageId': this.messageId,
  'messageType': this.messageType,
  'mutableContent': this.mutableContent,
  'notification': this.notification?.toJson(),
  'sentTime': this.sentTime?.millisecondsSinceEpoch,
  'threadId': this.threadId,
  'ttl': this.ttl,
};