Manual Reference Source Test
import ProfileModel from 'clinical6/src/models/user/Profile.js'
public class | source

ProfileModel

Model representing a user profile.

Constructor Summary

Public Constructor
public

constructor(response: Object)

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public

Public Constructors

public constructor(response: Object) source

Params:

NameTypeAttributeDescription
response Object

JSON formatted response of a user profile.

response.username String

The username of the profile

response.first_name String

First name of the user

response.last_name String

The last name of the user

response.avatar Object

The avatar value of the profile

response.gender String

The user's gender

response.age Number

The age of the user

response.ethnicity String

The user's ethnicity

response.zip_code String

Zip code of the user

response.occupation String

User's occupation

response.phone String

Phone number of the user

response.city String

The city portion of the user's address

response.dob String

The user's date of birth

response.updated_at String

The last time the user profile was updated

response.timezone String

The timezone of the user profile

response.state String

The state portion of the user's address

response.street String

The street portion of the user's address

response.occupation String

The user's occupation

response.middle_initial String

The user's middle initial

response.id Number

The profile ID value

response.created_at String

The date that the profile was created on

response.nodes Array

Node values of the profile

Public Members

public [stringToCamel(key)]: Any source

public avatar: Object source

public city: String source

public createdAt: String source

public dob: String source

public ethnicity: String source

public firstName: String source

public gender: String source

public id: Number source

public lastName: String source

public middleInitial: String source

public occupation: String source

public phone: String source

public prefix: String source

public role: String source

public state: String source

public street: String source

public suffix: String source

public timezone: String source

public updatedAt: String source

public username: String source

public zipCode: String source