toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'key': key,
    'from': from,
    'to': to,
    'epochMillis': epochMillis,
    'value': value,
    'operation': operation,
    'messageType': messageType,
    AtConstants.isEncrypted: isEncrypted,
    'notificationStatus': status,
    'expiresAt': expiresAtInEpochMillis,
    'metadata': metadata
  };
}