getType method Null safety

Type getType()

Implementation

Type getType() {
  return T;
}