toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'instance_id'] = this.instanceId;
if (this.userId != null) {
json[r'user_id'] = this.userId;
} else {
json[r'user_id'] = null;
}
if (this.firstName != null) {
json[r'first_name'] = this.firstName;
} else {
json[r'first_name'] = null;
}
if (this.lastName != null) {
json[r'last_name'] = this.lastName;
} else {
json[r'last_name'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
if (this.organizationId != null) {
json[r'organization_id'] = this.organizationId;
} else {
json[r'organization_id'] = null;
}
if (this.organizationName != null) {
json[r'organization_name'] = this.organizationName;
} else {
json[r'organization_name'] = null;
}
if (this.imageUrl != null) {
json[r'image_url'] = this.imageUrl;
} else {
json[r'image_url'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt;
} else {
json[r'created_at'] = null;
}
if (this.updatedAt != null) {
json[r'updated_at'] = this.updatedAt;
} else {
json[r'updated_at'] = null;
}
return json;
}