toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    TO: this.to ?? '',
    FROM: this.from ?? '',
    MESSAGE_ID: this.messageId ?? '',
    TOKEN: this.token ?? '',
    SENT_TIME: this.sentTime ?? '',
    URGENCY: this.urgency ?? '',
    ORIGINAL_URGENCY: this.originalUrgency ?? '',
    TTL: this.ttl ?? '',
    MESSAGE_TYPE: this.type ?? '',
    COLLAPSE_KEY: this.collapseKey ?? '',
    DATA: this.data ?? '',
    DATA_OF_MAP: this.dataOfMap ?? {},
    NOTIFICATION: this.notification != null ? this.notification!.toMap() : '',
    SEND_MODE: this.sendMode ?? '',
    RECEIPT_MODE: this.receiptMode ?? '',
    ANALYTICS_INFO: this.analyticInfo ?? '',
    ANALYTIC_INFO_MAP: this.analyticInfoMap ?? {}
  };
}