nullable method

GraphQLType<Json, Object?> nullable()
inherited

Returns a nullable type that represents this type. If the type is isNullable returns itself without changes.

Implementation

GraphQLType<Value, Serialized> nullable() {
  final _this = this;
  if (_this is GraphQLNonNullType<Value, Serialized>) {
    return _this.ofType;
  }
  return this;
}