validate method
void
validate()
Implementation
void validate() {
if (_to == null) {
if (_type != null || _on.length != 0) {
throw Exception('Join not initialized properly!');
}
} else {
if (_type == null || _on.length == 0) {
throw Exception('Join not initialized properly!');
}
}
}