Lead class

A lead in the Instantly API.

Annotations
  • @freezed

Constructors

Lead.new({required String email, @JsonKey(name: 'first_name') String? firstName, @JsonKey(name: 'last_name') String? lastName, @JsonKey(name: 'company_name') String? companyName, String? personalization, String? phone, String? website, @JsonKey(name: 'custom_variables') @CustomVariableConverter() List<CustomVariable>? customVariables})
Default constructor for the lead.
const
factory
Lead.fromJson(Map<String, dynamic> json)
Create a lead from a JSON object.
factory

Properties

companyName String?
no setterinherited
copyWith → $LeadCopyWith<Lead>
no setterinherited
customVariables List<CustomVariable>?
no setterinherited
email String
no setterinherited
firstName String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
lastName String?
no setterinherited
personalization String?
no setterinherited
phone String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
website String?
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited