toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.company != null) {
json[r'company'] = this.company;
} else {
json[r'company'] = null;
}
if (this.companyId != null) {
json[r'companyId'] = this.companyId;
} else {
json[r'companyId'] = null;
}
if (this.contactId != null) {
json[r'contactId'] = this.contactId;
} else {
json[r'contactId'] = null;
}
if (this.contactName != null) {
json[r'contactName'] = this.contactName;
} else {
json[r'contactName'] = null;
}
if (this.createdAt != null) {
json[r'createdAt'] = this.createdAt;
} else {
json[r'createdAt'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
json[r'events'] = this.events;
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'metadata'] = this.metadata;
if (this.reason != null) {
json[r'reason'] = this.reason;
} else {
json[r'reason'] = null;
}
if (this.role != null) {
json[r'role'] = this.role;
} else {
json[r'role'] = null;
}
if (this.screen != null) {
json[r'screen'] = this.screen;
} else {
json[r'screen'] = null;
}
if (this.stage != null) {
json[r'stage'] = this.stage;
} else {
json[r'stage'] = null;
}
if (this.tier1 != null) {
json[r'tier1'] = this.tier1;
} else {
json[r'tier1'] = null;
}
if (this.updatedAt != null) {
json[r'updatedAt'] = this.updatedAt;
} else {
json[r'updatedAt'] = null;
}
if (this.website != null) {
json[r'website'] = this.website;
} else {
json[r'website'] = null;
}
return json;
}