You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: notification.rb
    path of file: ./repos/rpush/lib/rpush/client/active_model/adm
    
    the code of the file until where you have to start completion: module Rpush
  module Client
    module ActiveModel
      module Adm
      
    
          def as_json(options = nil)
            json = { 'data' => data }
            json['consolidationKey'] = collapse_key if collapse_key
            # number of seconds before message is expired
            json['expiresAfter'] = expiry if expiry
            json
          end