OppReq class

Constructors

OppReq({int? amount, int? closeDate, String? companyId, String? currency, String? id, String? name, String? pointOfContactId, String? stage})
Returns a new OppReq instance.

Properties

amount ↔ int?
Amount is the deal value in minor units (cents) of Currency.
getter/setter pair
closeDate ↔ int?
CloseDate is the expected close, as a unix second (0 = unset).
getter/setter pair
companyId ↔ String?
CompanyID links the deal to one of the org's companies.
getter/setter pair
currency ↔ String?
Currency is the ISO code Amount is denominated in; empty defaults to USD.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID names the opportunity to update and comes from the path. A create ignores it: the server mints the id.
getter/setter pair
name ↔ String?
Name is the deal name. Required.
getter/setter pair
pointOfContactId ↔ String?
PointOfContact links the deal to one of the org's contacts.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stage ↔ String?
Stage is the pipeline stage: NEW, SCREENING, MEETING, PROPOSAL or CUSTOMER (case-insensitive). Empty defaults to NEW.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → OppReq?
Returns a new OppReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<OppReq>
mapFromJson(dynamic json) → Map<String, OppReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<OppReq>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.