def METHOD_NAME(read_buffer: ReadBuffer, response: bool):
    read_buffer.push_context("ModbusPDUReadDiscreteInputsRequest")
    self.starting_address = read_simple_field("startingAddress", read_unsigned_int)
    self.quantity = read_simple_field("quantity", read_unsigned_int)
    read_buffer.pop_context("ModbusPDUReadDiscreteInputsRequest")
    # Create the instance
    return ModbusPDUReadDiscreteInputsRequestBuilder(starting_address, quantity)