There was an error while loading. Please reload this page.
A Contact record represents the maintainer of the API. It has a few descriptive fields, which are name, url, email.
/* if in src/ */ import Contact from './models/Contact'
Contact extends Immutable.Record using the following pattern:
import { Record } from 'immutable' const Contact = Record({ name: null, url: null, email: null })
Contact.name
Contact.url
Contact.email
Please note that this example is abstract, and is there purely to represent the different interactions with Contact. The data may be non-sensical.
Contact
import Contact from './models/Contact' const contact = new Contact({ name: 'John Smith', url: 'http://example.com/maintainers', email: 'john.smith@...' })