Method: LockstepSdk::MagicLinkModel#as_json

Defined in:
lib/lockstep_sdk/models/magic_link_model.rb

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/lockstep_sdk/models/magic_link_model.rb', line 105

def as_json(options={})
    {
        'magicLinkId' => @magic_link_id,
        'groupKey' => @group_key,
        'userId' => @user_id,
        'userRole' => @user_role,
        'applicationId' => @application_id,
        'expires' => @expires,
        'revoked' => @revoked,
        'created' => @created,
        'createdUserId' => @created_user_id,
        'modified' => @modified,
        'modifiedUserId' => @modified_user_id,
        'companyId' => @company_id,
        'accountingProfileId' => @accounting_profile_id,
        'magicLinkUrl' => @magic_link_url,
        'user' => @user,
    }
end