Deal class
Deal model representing a sales opportunity in the Outseta CRM
- Inheritance
- Annotations
-
- @JsonSerializable.new()
Constructors
-
Deal({String? uid, DateTime? created, DateTime? updated, String? createdBy, String? updatedBy, String? name, double? amount, String? stage, String? stageUid, String? dealPipelineUid, String? accountUid, Account? account, String? personUid, Person? person, String? assignedToPersonUid, Person? assignedToPerson, DateTime? closeDate, String? dealLostReason, String? description, Map<
String, dynamic> ? customFields}) -
Creates a new Deal instance
const
-
Deal.fromJson(Map<
String, dynamic> json) -
Factory constructor that creates a Deal from JSON data
factory
Properties
- account → Account?
-
The account associated with this deal
final
- accountUid → String?
-
The UID of the account associated with this deal
final
- amount → double?
-
The amount of the deal
final
- assignedToPerson → Person?
-
The person this deal is assigned to
final
- assignedToPersonUid → String?
-
The UID of the person this deal is assigned to
final
- closeDate → DateTime?
-
The close date of the deal
final
- created → DateTime?
-
The date and time the model was created
finalinherited
- createdBy → String?
-
The user who created the model
finalinherited
-
customFields
→ Map<
String, dynamic> ? -
Custom fields associated with this deal
final
- dealLostReason → String?
-
The reason the deal was lost, if applicable
final
- dealPipelineUid → String?
-
The UID of the deal pipeline
final
- description → String?
-
The description of the deal
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The name of the deal
final
- person → Person?
-
The person associated with this deal
final
- personUid → String?
-
The UID of the person associated with this deal
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stage → String?
-
The stage of the deal (e.g., 'Qualification', 'Proposal', 'Negotiation')
final
- stageUid → String?
-
The UID of the stage
final
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - uid → String?
-
The unique identifier of the model
finalinherited
- updated → DateTime?
-
The date and time the model was last updated
finalinherited
- updatedBy → String?
-
The user who last updated the model
finalinherited
Methods
-
copyWith(
{String? uid, DateTime? created, DateTime? updated, String? createdBy, String? updatedBy, String? name, double? amount, String? stage, String? stageUid, String? dealPipelineUid, String? accountUid, Account? account, String? personUid, Person? person, String? assignedToPersonUid, Person? assignedToPerson, DateTime? closeDate, String? dealLostReason, String? description, Map< String, dynamic> ? customFields}) → Deal - Creates a copy of this deal with the given fields replaced with new values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this deal instance to a JSON map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited