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;
}
json[r'first_name'] = this.firstName;
json[r'last_name'] = this.lastName;
json[r'email'] = this.email;
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;
}
json[r'image_url'] = this.imageUrl;
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
return json;
}