function Order(data) { this.total = 0; this.description = ''; if (data) { this.total = data.total; this.description = data.description; } }