getType method Null safety

String getType()

Implementation

String getType() {
    return type;
}